Skip to content

querystring parser for node and the browser - supporting nesting (used by Express, Connect, etc)

License

Notifications You must be signed in to change notification settings

tj/node-querystring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2769b6e · Aug 4, 2014
Jul 7, 2014
Oct 24, 2011
Feb 4, 2011
Apr 7, 2013
Jan 14, 2014
Dec 3, 2013
Jan 14, 2014
Dec 4, 2013
Aug 4, 2014
Jul 19, 2011
Dec 3, 2013
May 2, 2013
Jul 7, 2014
Jan 14, 2014

Repository files navigation

THIS REPOSITORY IS NOW DEPRECATED

qs@1.0.0+ is now maintained by the awesome hapijs team at hapijs/qs. Please direct any new issues and concerns in that repository!

node-querystring Build Status

query string parser for node and the browser supporting nesting, as it was removed from 0.3.x, so this library provides the previous and commonly desired behaviour (and twice as fast). Used by express, connect and others.

Installation

$ npm install qs

Examples

var qs = require('qs');

qs.parse('user[name][first]=Tobi&user[email]=tobi@learnboost.com');
// => { user: { name: { first: 'Tobi' }, email: 'tobi@learnboost.com' } }

qs.stringify({ user: { name: 'Tobi', email: 'tobi@learnboost.com' }})
// => user[name]=Tobi&user[email]=tobi%40learnboost.com

Testing

Install dev dependencies:

$ npm install -d

and execute:

$ make test

browser:

$ open test/browser/index.html

About

querystring parser for node and the browser - supporting nesting (used by Express, Connect, etc)

Resources

License

Stars

Watchers

Forks

Packages

No packages published