module-root

Get the resolved path to the root of a package installed in node_modules

Downloads
652
Stars
10
Committers
3

module-root NPM version

For Node.js projects, set the CWD (current working directory) to the same directory as package.json.

Quickstart

var root = require('module-root');

Usage

root('lodash');
//=> ~/your-project/node_modules/lodash

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license

Package Rankings
Top 14.05% on Npmjs.org
Badges
Extracted from project README
NPM version
Related Projects