join-path

Join urls or system paths, even with undefined values

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
join-path
211.1.17 years ago10 years agoMinified + gzip package size for join-path in KB

Readme

join-path
Join urls or system paths, even with undefined values.

Install

npm install join-path --save

Usage

var join = require('join-path');

// OUTPUTS: some/path/for/testing
join('some', 'path', '/for/', undefined, '/testing'); 

// OUTPUTS: http://test.com/aboutus/projects
join('http://test.com', '/aboutus', 'projects');

Run Tests

npm install
npm test