Skip to content

iofjuupasli/qs-add

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qs-add

Add query string values to url.

API:

(addition: String | Object) => (url: string) => string

Example:

import qsAdd from 'qs-add';

qsAdd({a: `aa`})(`/foo/bar`);// /foo/bar?a=aa
qsAdd(`a=aa`)(`/foo/bar?a=x`);// /foo/bar?a=aa

qsAdd({a: `aa`})(`https://user:psw@sub.example.com:3000/foo/bar?query=string#hash`);
// https://user:psw@sub.example.com:3000/foo/bar?query=string&a=aa#hash

About

Add values to query string of url

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published