path-br Browerifiable path module. It's more light weight than the one provided by browserify, and provides a few more method for dealing paths in browsers. Installation npm install path-br API path.getPath(url) Get the path portion of a url. path.cwd() Dirname of the current html document.