1.0.1 • Published 7 years ago

g-string v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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