Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

qs-stringify

goto-bus-stop141.7kMIT1.2.1TypeScript support: included

Simple query stringify with nesting.

format, qs, querystring, stringify

readme

qs-stringify

Simple query stringify with nesting.

npm github standard

Install

npm install qs-stringify

Usage

var stringify = require('qs-stringify')

stringify({
  page: {
    offset: 50,
    limit: 25
  },
  filter: 'hello world'
})
// → "page[offset]=50&page[limit]=25&filter=hello%20world"

License

MIT

changelog

qs-stringify change log

All notable changes to this project will be documented in this file.

1.2.1 / 14 May 2020

  • Fix return type in typescript definition file.

1.2.0 / 08 Dec 2019

  • Add typescript definition.

1.1.0 / 17 Sep 2017

  • Make it even smaller (<200 bytes after gzip)

1.0.0 / 13 Sep 2017

  • Initial release.