Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 548 Bytes

Readme.md

File metadata and controls

36 lines (23 loc) · 548 Bytes

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