A small utility to create nested query strings with deep[property]=value
syntax.
Originally a fork of qs-stringify.
This package is no longer maintained and has since been replaced by the much faster, and much more feature complete picoquery.
npm install nested-querystring
import {stringify, create} from 'nested-querystring';
stringify({
page: {
offset: 50,
limit: 25
},
filter: 'hello world'
})
// → "page[offset]=50&page[limit]=25&filter=hello%20world"
create({
page: {
offset: 50,
limit: 25
},
filter: 'hello world'
});
// URLSearchParams { .... }