@jamen/query-string

0.1.0 • Public • Published

@jamen/query-string

Small query-string encode and decode.

Fork of @whaaaley/query-string to support Node.js and URI-encoded values.

Install

npm i @jamen/query-string

Usage

Your module system needs to support es2015 modules to use this package.

decode(str) -> obj

decode('?foo=bar&baz=qux&quux=corge')
// => { foo: 'bar', baz: 'qux', quux: 'corge' }

encode(obj) -> str

encode({ foo: 'bar', baz: 'qux', quux: 'corge' })
// => '?foo=bar&baz=qux&quux=corge'

Readme

Keywords

none

Package Sidebar

Install

npm i @jamen/query-string

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

2.03 kB

Total Files

4

Last publish

Collaborators

  • jamen