1.2.1 • Published 4 years ago

path-combine v1.2.1

Weekly downloads
3
License
ISC
Repository
github
Last release
4 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

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago