Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

iso-path-join

sirrodgepodge55ISC1.0.6

Node.js's native 'path' module's 'join' method made isomorphic(/universal) with the bonus of handling arrays

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'

NPM