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 = ; // -> parses the `window.location.search` string if present // -> {a:'b'} // -> {caret:'rocks', suuper:'star'}
test
npm test
license
MIT