urler
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

urler

a small lib for handle url parse and add params.

download version language License

Install

npm i urler -S

Start

parseParams

parseParams('http://a.com/b?c=1') = {c:'1'}

addParam

addParam('http://a.com/b?c=1', 'd', 2) = 'http://a.com/b?c=1&d=2'

addParams

addParams('http://a.com/b?c=1', { d: 2 }) = 'http://a.com/b?c=1&d=2'

Readme

Keywords

none

Package Sidebar

Install

npm i urler

Weekly Downloads

4

Version

0.1.2

License

MIT

Unpacked Size

8.49 kB

Total Files

13

Last publish

Collaborators

  • quietcoder