component-querystring

Simple key/value pair query-string parsing

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
component-querystring
3512.0.12 years ago8 years agoMinified + gzip package size for component-querystring in KB

Readme

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