Simple key / value pair query-string parser and formatter.
$ component install component/querystring
Parse the given query string
:
var query = require('querystring');
query.parse('name=tobi&species=ferret');
// => { name: 'tobi', species: 'ferret' }
Stringify the given object
:
var query = require('querystring');
query.stringify({ name: 'tobi', species: 'ferret' });
// => "name=tobi&species=ferret"
MIT