@alexjeffburke/npm-dependants

2.0.0-patch1 • Public • Published

npm-dependants

Get dependants of a module on npm.

This is a fork of npm-dependants that exposes a standard iterator.

Usage

const dependants = require('@alexjeffburke/npm-dependants')

for (const dependant of await dependants('express')) {
  console.log(dependant)
  // webpack-dev-server
  // webpack-bundle-analyzer
  // ...
}

Installation

$ npm install @alexjeffburke/npm-dependants

Implementation

Since there is no reliable api for querying dependant packages currently, this module scrapes npmjs.com - at the risk of npm changing their DOM. If you notice anything breaking, please open an issue 🙇‍♂️.

Package Sidebar

Install

npm i @alexjeffburke/npm-dependants

Weekly Downloads

4

Version

2.0.0-patch1

License

MIT

Unpacked Size

4.42 kB

Total Files

8

Last publish

Collaborators

  • alexjeffburke