join-path

Join urls or system paths, even with undefined values

MIT 4 个版本
安装
npm install join-path
yarn add join-path
pnpm add join-path
bun add join-path
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
版本列表
1.1.1 2017-01-11
1.1.0 2015-08-26
1.0.1 2015-07-13
1.0.0 2014-09-23