2.0.6 • Published 7 years ago

mini-querystring v2.0.6

Weekly downloads
150
License
MIT
Repository
github
Last release
7 years ago

Light weight, universal, query string parser for node and the browser with support for nested properties.

Checkout q-set and q-flat (used internally) for more info on nested query string parsing and stringifying.

Installation

npm install mini-querystring

Example

import { parse, stringify } from 'mini-querystring'

// Parse standard query string.
parse('a=1&b=2&') /* { a: '1', b: '2' } */

// Parse nested query string.
parse('a=1&b[c]=2', true) /* { a: '1', b: { c: '1' } } */

// Stringify standard object.
stringify({ a: 1 }) /* 'a=1' */

// Stringify nested object.
stringify({ a: { b: 1 } }, true) /* 'a[b]=1'

Contributions

  • Use npm test to build and run tests.

Please feel free to create a PR!

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago