Mini-QueryString
Light weight, universal, query string parser for node and the browser with support for nested properties.
Checkout q-set and q-flat (used internally) for more info on nested query string parsing and stringifying.
Installation
npm install mini-querystring
Example
// Parse standard query string. /* { a: '1', b: '2' } */ // Parse nested query string. /* { a: '1', b: { c: '1' } } */ // Stringify standard object. /* 'a=1' */ // Stringify nested object. /* 'a[b]=1'
Contributions
- Use
npm test
to build and run tests.
Please feel free to create a PR!