iso-path-join

1.0.6 • Public • Published

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'

NPM

Readme

Keywords

none

Package Sidebar

Install

npm i iso-path-join

Weekly Downloads

26

Version

1.0.6

License

ISC

Last publish

Collaborators

  • sir-rodge-podge