1.1.0 • Published 1 year ago

nested-querystring v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 { .... }

License

MIT

1.1.0

1 year ago

1.0.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago