querystring to json
querystring to json & json to querystring
use in script
- import index.js
- example
//parselet str="a=1&a=2&b=2&c=3&d=123&e=true"let obj=qs; //{ a: [ '1', '2' ], b: '2', c: '3',d:123,e:true }//stringifylet obj= a: '1' '2' b: '2' c: '3'd:123e:true ;let str=qs; //"a=1&a=2&b=2&c=3&d=123&e=true"
use in node
- install
npm i querystring2json
- example
const qs =;let str="a=1&a=2&b=2&c=3&d=123&e=true";let obj=qs;console; //{ a: [ '1', '2' ], b: '2', c: '3',d:123,e:true }console; //"a=1&a=2&b=2&c=3&d=123&e=true"
to develop
- install
npm install
- test
npm run test
- build
npm run build