🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

npm-get-dependents

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-get-dependents

get all dependents of an npm package

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

npm-get-dependents

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

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

Keywords

npm

FAQs

Package last updated on 23 Nov 2016

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