query stringer
Build & parse query strings
install
npm i -S trae-query
and use it
const buildQuery parseQuery = const url = console // <-- /api/posts?foo=bar&q=my%20query const query = console // <-- { foo: 'bar', q: 'my query' }
FAQ
- Why such small module? Sindre gives a good answer to this.