JavaScript Icon

node-querystring: Nested querystring parser for Node.js

logged by @logbot 2011-02-04T05:01:13Z permalink #javascript #node

If you’re missing the Rails or Rack style nested query string parsing removed from Node.js in 0.3.x, check out the latest project from TJ Holowaychuk.

Node-Querystring can be installed via npm:

npm install node-querystring

Now you can handle those nested query strings with parse:

// => { user: { name: { first: 'Elmer', last: 'Fudd' }}}

A small module, but quite convenient. If you’re a user of Express or Connect, TJ just updated those projects to include the new bits.

[Source on GitHub]

0:00 / 0:00