join-path
Version:
Join urls or system paths, even with undefined values
28 lines (19 loc) • 400 B
Markdown
Join urls or system paths, even with undefined values.
```
npm install join-path --save
```
```js
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');
```
```
npm install
npm test
```