Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including qs-parse with all npm packages installed. Try it out:

var qsParse = require("qs-parse")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

qs-parse v0.2.0

strict querystring parser for browser

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free