url-query-parser
A simple script for parsing and manipulating application/x-www-form-urlencoded data (such as the query strings in URLs). Works in both browsers and node.js.
Usage
; let query = 'foo=bar&biz=baz'; console; // <= 'bar'
There's a bunch of things it can do. Check out src/query.spec.ts for details.
If instead you just want simple string->object
and object->string
functions, you can use url-query-parser/simple
.
const Query = ; let query = Query;console; // <= { foo: 'bar', biz: 'baz' }console; // <= 'foo=bar&biz=baz'