Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dword-design/module-root

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dword-design/module-root

Get the resolved path the root (directory) of a package installed in node_modules.

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
163
decreased by-8.43%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 23 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc