nested-querystring
v1.1.0
Published
A small utility to create nested query strings
Downloads
15
Readme
nested-querystring
A small utility to create nested query strings with deep[property]=value
syntax.
Originally a fork of qs-stringify.
Install
npm install nested-querystring
Usage
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 { .... }