npm install --save rootrequire # then `var root = require('rootrequire'), myLib = require(root + '/path/to/lib.js');` - View it on GitHub
Star
19
Rank
847580