Checks how many dependents has npm package.
npm i check-npm-dependents
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