pretty-path
v1.0.2
Published
Prettify paths
Downloads
2
Readme
Usage
Quite simple as of now. Pass it a filepath and it will try to transform the path into its most syntactically correct form.
var ppath = require('pretty-path')
ppath('x/y/z') // --> ./x/y/z
ppath('x/y/z') // --> /x/y/z
ppath('./////x/y/z') // --> ./x/y/z
ppath('././././x/y/z') // --> ./x/y/z
I realize it is limited in its functionality. Updates will come soon.
Contributions
Any ideas you have - follow them and see them to fruition. Submit a pull request with unit tests and your commit should be merged in no time