Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

paulmillr/universal-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

universal-path

Cross-platform universal node.js path module replacement that works better with Windows.

Usage

const sysPath = require('universal-path');

// Two additional helper methods.
sysPath.slashes(path)   // Converts win32 path to unit path.
sysPath.unslashes(path) // Converts unix path to win32 path.

// Methods from node.js `path`.
sysPath.isAbsolute()
sysPath.basename()
sysPath.sep()

// Methods from node.js `path`; `slashes` is executed on the output.
sysPath.normalize()
sysPath.relative()
sysPath.resolve()
sysPath.join()
sysPath.dirname()

License

MIT (c) 2016 Paul Miller (http://paulmillr.com)

About

Cross-platform universal node.js `path` module replacement that works better with Windows

Resources

Stars

Watchers

Forks

Packages

No packages published