Join-URL
Like path.join
for urls.
Installation
npm install join-url
Example
var join = ; joinpathname"/admin/" "dashboard/" "/messages" "new";//-> "/admin/dashboard/messages/new" joinhostname".sub." "domain." ".co" "uk";//-> "sub.domain.co.uk" join;//-> "a=1&b=2&c=3&d=4"
Contributions
- Use
npm test
to run tests.
Please feel free to create a PR!