nested-querystring
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

/nested-querystring/

    Package Sidebar

    Install

    npm i nested-querystring

    Weekly Downloads

    6

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    7.23 kB

    Total Files

    7

    Last publish

    Collaborators

    • 43081j