Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/callumacrae/find-node-modules-down
:arrow_down: Find child node_modules directories
https://github.com/callumacrae/find-node-modules-down
Last synced: 20 days ago
JSON representation
:arrow_down: Find child node_modules directories
- Host: GitHub
- URL: https://github.com/callumacrae/find-node-modules-down
- Owner: callumacrae
- Created: 2015-02-25T14:33:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T12:15:21.000Z (almost 10 years ago)
- Last Synced: 2024-12-17T05:29:23.272Z (23 days ago)
- Language: JavaScript
- Homepage:
- Size: 164 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# find-node-modules-down [![Build Status](https://travis-ci.org/callumacrae/find-node-modules-down.svg)](https://travis-ci.org/callumacrae/find-node-modules-down)
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
```js
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.
[find-node-modules]: https://github.com/callumacrae/find-node-modules