set-query-params
v0.0.3
Published
Set/ override url query parameters
Downloads
12
Readme
Set query params
Set/ override url query parameters
Table of Contents
Install
npm i set-query-params
# Or with Yarn
yarn add set-query-params
Usage
import setQueryParams from `set-query-params`;
const url = setQueryParams('http://example.org/?foo=test&hello=user', { hello: 'world' });
console.log(url); // http://example.org/?foo=test&bar=test&hello=world
Contributing
See the contribute file!
PRs accepted.