Get unlimited public & private packages + team-based management with npm Teams.Learn more »

qs-parse

0.2.0 • Public • Published

qs-parse

strict querystring parser for browser

license ci coverage version download

install

$ npm install qs-parse

usage

import { decode } from 'qs-parse';
 
decode('foo=bar&baz=quux&baz=quuux&baz=quuuux');
// { foo: ['bar'], baz: ['quux', 'quuux', 'quuuux'] }
 
decode('foo=bar&baz=quux&baz=quuux&baz=quuuux', 'first');
// { foo: 'bar', baz: 'quux' }
 
decode('foo=bar&baz=quux&baz=quuux&baz=quuuux', 'quirk');
// { foo: 'bar', baz: ['quux', 'quuux', 'quuuux'] }

test

$ npm test

license

MIT

Keywords

Install

npm i qs-parse

DownloadsWeekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • avatar