node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



For da browsa.


Node.js has built-in support query string parsing/stringifying. However, if you want to include the module in your app so you get dependency management with npm and then symlink the client side js file somewhere, you can install via npm:

npm install parse-query

Otherwise, for browsers, just grab either parse_query.js or parse_query.min.js in the root of this repo and place it in script tags on your page.


Attatched to window as parseQuery.

parseQuery '?hello=world'
# => { hello: 'world' } 

If you don't pass it any options, it will default to