path-util

Utility for pathname manipulations
Install
$ npm install --save path-util
Usage
var pathUtil = ; var relPath = pathUtil;console;// => '../css/style.css' var dir = pathUtil;console;// => '/node/site' var ext = pathUtil;console;// => 'css' // and many more (check the docs or even lib/index.js itself)...
License
MIT © oss6