queryjs
easy url query parameter manipulation
available in the browser and in nodejs
npm install queryjs
queryjs.set(parameterObject)
//newURL === 'url.com?a=foo';var newURL = queryjs; //newURL === 'url.com?a=new&b=bar'newURL = queryjs;
queryjs.get()
//parameters === { a: 'foo' };var parameters = queryjs;
works with url hashes. (todo: support query parameter arrays)