Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple key / value pair query-string parser

branch: master
Octocat-spinner-32 test add array support April 12, 2014
Octocat-spinner-32 .gitignore add reduce and trim components November 08, 2012
Octocat-spinner-32 History.md Release 1.3.0 April 14, 2014
Octocat-spinner-32 Makefile remove question mark if it exists October 18, 2013
Octocat-spinner-32 Readme.md docs November 08, 2012
Octocat-spinner-32 component.json Release 1.3.0 April 14, 2014
Octocat-spinner-32 index.js add array support April 12, 2014
Octocat-spinner-32 package.json 1.2.0 December 07, 2013
Readme.md

querystring

Simple key / value pair query-string parser and formatter.

Installation

$ component install component/querystring

API

.parse(string)

Parse the given query string:

var query = require('querystring');
query.parse('name=tobi&species=ferret');
// => { name: 'tobi', species: 'ferret' }

.stringify(object)

Stringify the given object:

var query = require('querystring');
query.stringify({ name: 'tobi', species: 'ferret' });
// => "name=tobi&species=ferret"

License

MIT

Something went wrong with that request. Please try again.