Skip to content

component/querystring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple key / value pair query-string parser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages