Get the resolved path the root (directory) of a package installed in node_modules.
npm install @dword-design/module-root> For Node.js projects, set the CWD (current working directory) to the same directory as package.json.
``js`
var root = require('module-root');
`js``
root('lodash');
//=> ~/your-project/node_modules/lodash
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert