Set query or search params to a url link.
$ npm i url-query-set
import querySet from 'url-query-set';
var link = querySet('https://a.com/b?c=1&d=2#g=5&h=6', { e: 3, f: 4 });
console.log(link);
// https://a.com/b?c=1&d=2&e=3&f=4#g=5&h=6
Set query or search params to a url link.
$ npm i url-query-set
import querySet from 'url-query-set';
var link = querySet('https://a.com/b?c=1&d=2#g=5&h=6', { e: 3, f: 4 });
console.log(link);
// https://a.com/b?c=1&d=2&e=3&f=4#g=5&h=6
npm i url-query-set
461
0.2.0
MIT
8.69 kB
5