Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thangngoc89/join-uri
Lightweight ultility for joining url (Javascript)
https://github.com/thangngoc89/join-uri
Last synced: 6 days 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-02T04:00:16.000Z (almost 9 years ago)
- Last Synced: 2024-12-18T22:32:12.285Z (about 1 month 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[![Build Status](https://img.shields.io/travis/thangngoc89/join-uri/master.svg?style=flat-square)](https://travis-ci.org/thangngoc89/join-uri)
[![Test Coverage](https://img.shields.io/codecov/c/github/thangngoc89/join-uri/master.svg?style=flat-square)](https://codecov.io/github/thangngoc89/join-uri?branch=master)
[![Latest Stable Version](https://img.shields.io/npm/v/join-uri.svg?style=flat-square)](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