check-npm-dependents
Version:
Checks how many dependents has npm package
30 lines (21 loc) • 750 B
Markdown
const check = require('check-npm-dependents');
check('lodash').then(console.log) // for ex. 68195
check('_ABC').then(console.log) // Error: Unable to determine dependents for package: "_ABC"
check('').then(console.log) // Error: Bad name : ""
```
MIT
[ ]: https://npmjs.org/package/check-npm-dependents
[ ]: https://badge.fury.io/js/check-npm-dependents.svg
[ ]: https://travis-ci.org/astur/check-npm-dependents
[ ]: https://travis-ci.org/astur/check-npm-dependents.svg?branch=master
Checks how many dependents has npm package.
[![Build Status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]
```bash
npm i check-npm-dependents
```
```js