change-url
v1.1.2
Published
Tiny module to modify an URL string
Downloads
132
Readme
change-url
Tiny module to modify any part of an URL:
changeUrl('/abc?foo=biz', url => ({
...url,
query: {
...url.query,
added: 'baz',
},
}))
// ==> abc?foo=biz&added=baz
Install
npm install change-url