Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

find-node-modules-down

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-node-modules-down

Find all child node_modules directories

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

find-node-modules-down Build Status

Similar to find-node-modules but the other way round. Will find every child node_modules directory.

Install

$ npm install --save find-node-modules-down

Usage

var findModulesDown = require('find-node-modules-down');

findModulesDown();
//=> ['node_modules', 'something/node_modules', 'something/node_modules/node_modules']

findModulesDown('something');
//=> ['something/node_modules', 'something/node_modules/node_modules']

It's very simple.

It will return absolute paths if given an absolute path, or relative paths if given a relative path (and it defaults to ".").

License

Released under MIT license.

FAQs

Package last updated on 25 Feb 2015

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