url-join-ts
Join urls and normalize on Typescript.
Installation
npm i url-join-ts --save
or
yarn add url-join-ts
Usage
urlJoin(url, paths)
; urlJoin'https://example.com', 'path', 'path2'; // https://example.com/path/path2
urlJoinP(url, paths, params)
; urlJoinP'https://example.com', , ; // https://example.com/path/path2?param1=1¶m2=2
Licence
MIT