1.2.1 • Published 5 years ago

path-combine v1.2.1

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

path-combine

Combine 2 url paths (no dependencies)

Install

npm i path-combine --save

Usage

ES module

import { combine } from 'path-combine'

or

common js

const { combine } = require('path-combine');
// returns "http://example.com/test" for all of the following cases    
combine('http://example.com', 'test');
combine('http://example.com/', 'test');
combine('http://example.com/', '/test');
combine('http://example.com', '/test');
1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago