querystringparser
querystringparser copied to clipboard
Extremely fast querystring parser for Javascript
```js qs.parse('a') -> { a: '' } qs.parse('a&') -> { a: '' } qs.parse('a&b') -> { a: '', b: '' } qs.parse('a=&b') -> { a: '', b: '' } querystringparser.parse('a')...
``` js var qs = require('qs'); var qsparser = require('querystringparser'); console.log(qs.parse({ key: 'Value & value', })); console.log(qsparser.parse({ key: 'Value & value', })); ``` ``` js { key: 'Value & value'...
The library crashes when a querystring contains a value without a key or an empty key. e.g: ``` url.parse('http://www.google.com/hello?=test', true) ``` will crash with the error: ``` TypeError: Cannot call...
##### Working (depth: 2) ``` js var Qss = require('querystringparser/js/querystringserializer'); (new Qss()).serialize({ a: { b: true }, d: true, }); ``` Expected and result: `a[b]=true&d=true` ##### Not working (depth: 3)...