npm-dependants
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/npm-dependants package

2.1.2 • Public • Published

npm-dependants

Get dependants of a module on npm.

Usage

Use the JavaScript API:

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

Use the CLI:

$ npx npm-dependants express
webpack-dev-server
webpack-bundle-analyzer
# ... 

Use as an Op:

$ npm install -g @cto.ai/ops && ops account:signup
$ ops run @juliangruber/npm-dependants brace-expansion

Installation

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

Sponsors

This project is sponsored by CTO.ai, making it easy for development teams to create and share workflow automations without leaving the command line.

Package Sidebar

Install

npm i npm-dependants

Weekly Downloads

69

Version

2.1.2

License

MIT

Unpacked Size

6.75 kB

Total Files

12

Last publish

Collaborators

  • juliangruber