Check whether a package name is available on npm
Install
$ npm install --save npm-name
Usage
const npmName = require('npm-name');
npmName('chalk').then(available => {
console.log(available);
//=> false
});
Related
- npm-name-cli - CLI for this module
License
MIT © Sindre Sorhus