Skip to content

ishanray/query-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

###Install:

npm install query-string-pusher

###Usage:

var QueryString = require('query-string-pusher')

QueryString.push('foo=bar')
// or
QueryString.push({foo: 'bar'})

###Details: Query String Pusher rewrites any query string with the same key. eg.

QueryString.push('foo=bar') // or {foo: 'bar'}
QueryString.push('foo=car') // or {foo: 'car'}

will make the query string foo=car.

You can also chain the pushes anyway you like, eg.

QueryString.push({foo: 'bar', shoo: 'shoe'}) 

About

An easy way of updating query strings in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published