Skip to content

sirrodgepodge/iso-path-join

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Node.js's native 'path' module made isomorphic(/universal)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published