Parse query strings in the browser
Latest commit be49870 Jul 2, 2013 @benjreinhart Version bump
Failed to load latest commit information.
lib Refactored Jul 2, 2013
src Refactored Jul 3, 2013
test Initial commit Jul 2, 2013
.gitignore Initial commit Jul 2, 2013
Makefile add non minified version Jul 2, 2013 Updated readme Jul 2, 2013
license.txt Initial commit Jul 2, 2013
package.json Version bump Jul 2, 2013
parse_query.js add non minified version Jul 3, 2013
parse_query.min.js Update client side package Jul 2, 2013


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