Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 798 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 798 Bytes

nested-querystring

A small utility to create nested query strings with deep[property]=value syntax.

Originally a fork of qs-stringify.

No longer maintained

This package is no longer maintained and has since been replaced by the much faster, and much more feature complete picoquery.

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