https://github.com/thangngoc89/join-uri
Lightweight ultility for joining url (Javascript)
https://github.com/thangngoc89/join-uri
Last synced: 3 months ago
JSON representation
Lightweight ultility for joining url (Javascript)
- Host: GitHub
- URL: https://github.com/thangngoc89/join-uri
- Owner: thangngoc89
- License: mit
- Created: 2016-04-02T03:29:56.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-02T04:00:16.000Z (about 9 years ago)
- Last Synced: 2025-02-19T14:05:44.992Z (4 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# join-uri
Lightweight Javascript ultility for joining url with no dependencies[](https://travis-ci.org/thangngoc89/join-uri)
[](https://codecov.io/github/thangngoc89/join-uri?branch=master)
[](https://www.npmjs.com/package/join-uri)# Install
```console
npm install -S join-uri
```# Usage
```js
var joinUri = require("join-uri")// Normal join
joinUri("foo", "bar") // -> foo/bar// Ensure surrounding slashes
joinUrl("/", "foo/", "/bar", "/") // -> /foo/bar/
```# LICENSE
MIT