Skip to content

manprit/path-combine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published