2.0.0-patch1 • Published 4 years ago

@alexjeffburke/npm-dependants v2.0.0-patch1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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 🙇‍♂️.