url-params-edit
v0.0.6
Published
the url of tools
Downloads
3
Readme
#Example import Url from 'url-params-edit';
let url=new Url('https://www.npmjs.com/package/url-params-edit?accept-language=en'); ##getParams let params=url.getParams();//params:{'accept-language':'en'} ##getParameter let accept_language=url.getParameter('accept-language');//en
##setParameter url.setParameter('username','nick');
##setParams url.setParams({password:'123456'});
console.log(url.url); //https://www.npmjs.com/package/url-params-edit?accept-language=en&username=nick&password=123456