# find-uses-of

> Find modules depending on a module

Latest version **1.1.0** (published 2016-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install find-uses-of
pnpm add find-uses-of
yarn add find-uses-of
bun add find-uses-of
```

Provides the command `find-uses-of`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-09-18 |
| First published | 2016-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mike Arvela |
| Maintainers | mieky |
| Keywords | module, dependencies, find, usage, walk, recursively |

## Links

- npm: https://www.npmjs.com/package/find-uses-of
- Repository: https://github.com/mieky/find-uses-of
- Issues: https://github.com/mieky/find-uses-of/issues
- npm.io page: https://npm.io/package/find-uses-of

## Dependencies (2)

- [bluebird](https://npm.io/package/bluebird.md) ^3.4.6
- [lodash.has](https://npm.io/package/lodash.has.md) ^4.5.2

## Recent versions

- 1.1.0 (latest) — 2016-09-18
- 1.0.2 — 2016-09-18

## README

# find-uses-of

Find uses of a Node module inside subdirectories.
```bash
    ~/dev > find-uses-of eslint
    Finding packages depending on eslint...
    benson
    find-uses-of
    jestas
    wappuapp-backend
    wappuapp-client
    yet-another-redux-example
```

Starting from the current working directory, finds Node modules that have a given module as either a "dependency" or "devDependency" in their package.json.

Only walks the directory tree up to the first package.json, then moves to the next directory.


## Installation

    $ npm install -g find-uses-of

**Requires Node 6** for its ES6 syntax support (spread, generators). Tested on Node v6.6.0.


### Using as a module

    $ npm install --save find-uses-of

To use in your application:

    const finder = require('find-uses-of');

    finder.findUsesInPath(process.cwd(), "eslint")
      .then(locations => locations.forEach(l => console.log(l)))
      .catch(err => console.log(err));

## Acknowledgements

This project is a grateful recipient of the [Futurice Open Source sponsorship program](http://futurice.com/blog/sponsoring-free-time-open-source-activities).


## License

[MIT](https://github.com/mieky/find-uses-of/blob/master/LICENSE)

---
_Source: https://npm.io/package/find-uses-of · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
