rootrequire (npm): npm install --save rootrequire # then `var root = require('rootrequire'), myLib = require(root + 'path/to/lib.js');`
Keywords: require|root|project|directory|dir|path