1.5.0 • Published 6 years ago

url-search-params-update v1.5.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

URL Search Params Update

set, get and delete search params from url

Install

npm install --save url-search-params-update

Usage

import params from 'url-search-params-update' 

console.log(location.search)
//=> '?foo=bar&x=y'

const foo = params.get("foo")
//=> 'bar'

params.set("foo", "sindresorhus")
//=> '?foo=sindresorhus&x=y'

params.delete("x")
//=> '?foo=sindresorhus'

License

MIT © Kiran P S

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago