Get the path to the source directory and save it in env once.
Relative and absolute path are available.
Absolute: you can just set your path blatantly in process.env.NODE_PATH
// put this in your index.js or app.js (just once in a project and that becomes root)
require('node-path-choice').blatant(__dirname)
rootpath()
is waste of cpu cycles. Use this instead.
MIT