1.0.2 • Published 9 years ago

pretty-path v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

#pretty-path NPM

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