find-node-modules-down

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i find-node-modules-down

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • callumacrae