npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

module-root

0.2.0

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:0
$ npm install module-root
DailyWeeklyMonthlyYearly

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

  • github/jonschlinkert
  • twitter/jonschlinkert

License

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