# npm-get-dependents

> get all dependents of an npm package

Latest version **1.0.1** (published 2016-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-get-dependents
pnpm add npm-get-dependents
yarn add npm-get-dependents
bun add npm-get-dependents
```

## 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.0.1 |
| Published | 2016-11-23 |
| First published | 2015-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Chris Dickinson |
| Maintainers | chrisdickinson |
| Keywords | npm, packages, dependents |

## Links

- npm: https://www.npmjs.com/package/npm-get-dependents
- Repository: https://github.com/chrisdickinson/npm-get-dependents
- Issues: https://github.com/chrisdickinson/npm-get-dependents/issues
- npm.io page: https://npm.io/package/npm-get-dependents

## Dependencies (3)

- [once](https://npm.io/package/once.md) ^1.3.1
- [JSONStream](https://npm.io/package/JSONStream.md) ^0.10.0
- [emit-function](https://npm.io/package/emit-function.md) 0.0.2

## Recent versions

- 1.0.1 (latest) — 2016-11-23
- 1.0.0 — 2015-01-20

## README

# npm-get-dependents

Get a list of a packages' npm dependents, optionally as a stream.

```javascript
var getDependents = require('npm-get-dependents');

getDependents('beefy', function(err, packages) {
  packages.forEach(console.log); // each package is a string.
});

getDependents.createReadStream()
 .on('data', console.log);       // log each package as it comes through
```

## API

### `getDependents(package:String, ready:Function<Error, String>) → undefined`

Get all dependents in one fell swoop. Calls `ready` with any error encountered as
the first argument and any array of strings representing packages as the second argument.

### `getDependents.createReadStream(package:String, perPage:Number=100) → Readable<String>`

Create an objectMode readable stream of package dependents. Each package is represented as a single
data event.

## License

MIT

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