Pretty-Path is a filepath prettifier
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
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