# module-root **Repository Path**: mirrors_TooTallNate/module-root ## Basic Information - **Project Name**: module-root - **Description**: Get the resolved path to the root of a package installed in node_modules - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # module-root [![NPM version](https://badge.fury.io/js/module-root.png)](http://badge.fury.io/js/module-root) > For Node.js projects, set the CWD (current working directory) to the same directory as package.json. ## Quickstart ```js var root = require('module-root'); ``` ## Usage ```js root('lodash'); //=> ~/your-project/node_modules/lodash ``` ## Author **Jon Schlinkert** + [github/jonschlinkert](https://github.com/jonschlinkert) + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ## License Copyright (c) 2014 [Jon Schlinkert](https://github.com/jonschlinkert), contributors. Released under the MIT license