path-steps
Proxy for your path
module, with some functions enhanced to
accept arrays as paths.
Usage
In the comments, /…
in front of the string denotes that the string
returned actually starts with your node_modules
directory's path.
var paSt = modFn = modulefilename pkgDefAbs = require // … testName = pathLib; paSt; // -> "a/b/c/d"paSt; // -> /…"/path-steps/test/usage.js"paSt; // -> /…"/path-steps/package.json"paSt; // -> "../package.json"paSt; // -> "usage.js"paSt; // -> "path-steps/test/usage.js"paSt; // -> "../test/usage.js"paSt; // -> /…"/path-steps/test/usage.js"paSt; // -> /…"/path-steps/package.json"
(Generated with ./doc/usage.sed test/usage.js
– if you can,
please keep this working in your pull requests and update the readme.)
License
ISC