iso-path-join
v1.0.6
Published
Node.js's native 'path' module's 'join' method made isomorphic(/universal) with the bonus of handling arrays
Downloads
46
Readme
iso-path-join
Node.js's native 'path' module's 'join' method made isomorphic(/universal)
useful for using 'require' on the front end or for dynamically generating routes. Used the exact same way as Node.js's native path.join with the bonus of being able to handle arrays
import pathJoin from 'iso-path-join';
var joinedPath = pathJoin('..', '..', './', 'testFolder', ['check', 'me', 'out']);
console.log(joinedPath); // => '../.././testFolder/check/me/out'