g-string

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i g-string

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • gyfchong