Skip to content

intesso/url-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-query

parses and returns a window.location.search like string as object. this is a tiny and simple function without fancy stuff like nested objects.

install

npm install url-query

usage

var query = require('url-query');

query() // -> parses the `window.location.search` string if present
query('?a=b') // -> {a:'b'}
query('?suuper=star&caret=rocks') // -> {caret:'rocks', suuper:'star'}

test

npm test

license

MIT

About

return location.search as object

Resources

License

Stars

Watchers

Forks

Packages

No packages published