querystring:解析和字符串化URL查询字符串

时间:2021-04-27 12:54:31
【文件属性】:
文件名称:querystring:解析和字符串化URL查询字符串
文件大小:54KB
文件格式:ZIP
更新时间:2021-04-27 12:54:31
querystring query-string TypeScript 请求参数 解析和字符串化URL查询字符串。 从分叉 安装 yarn add @chaitin/querystring 用法 import { parse , stringify } from '@chaitin/querystring' const result = parse ( "foo=foo&foo&foo=one&foo=&bat=buz" ) // the result is: { bat : "buz" , foo : [ "foo" , null , "one" , "" ] } // result is sorted by key let qs = stringify ( { page : "10" , pageSize : 200 , filter : [ "aaa" , "bbb" , "ccc" , 255 ] } ) qs === "filter=a
【文件预览】:
querystring-master
----.gitignore(913B)
----tsconfig.json(336B)
----README.md(1KB)
----tsconfig.esm.json(111B)
----CHANGELOG.md(765B)
----test()
--------test_parse.ts(3KB)
--------test_array.ts(360B)
--------test_stringify.ts(2KB)
----LICENSE(1KB)
----package.json(1KB)
----tslint.json(125B)
----src()
--------index.ts(4KB)
--------.npmignore(18B)
----.travis.yml(247B)
----.editorconfig(147B)
----yarn.lock(167KB)
----tsconfig.cjs.json(135B)
----.npmrc(37B)

网友评论