g-string
v1.0.1
Published
Manages query string
Downloads
3
Readme
g-string
Manage your query string parameters
Why?
Because React Router v4 doesn't manage query strings anymore, so I built my own :)
What does it do?
Combines your current URL query with the object you pass it and returns a new query string.
Install
$ npm install g-string
Usage
import gString from 'g-string';
gString({ foo: bar })
//=> foo=bar
gString({ hello: world })
//=> foo=bar&hello=world
gString({}, 'hash')
//=> foo=bar&hello=world#hash