inxilpro / node-app-root-path

Determine the root path to your project
MIT License
604 stars 29 forks source link

Rest resolve parameter. #26

Closed filenwind closed 5 years ago

filenwind commented 6 years ago

If rest appRootPath.resolve params and join with path.sep will be great.

var appRootPath = require('app-roo-path');
var barDirPath = appRootPath.resolve('foo', 'bar'); //  root/foo/bar
inxilpro commented 5 years ago

I don't plan on expanding the scope of the package. If I release a 3.0, it will probably only export the path and nothing else.