node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

pkg-name

pkg-name Build Status

Check whether a package name is available on npm and bower

Install

$ npm install --save pkg-name

Usage

var pkgName = require('pkg-name');
 
pkgName('chalk', function (err, available) {
    console.log(available);
    //=> {npm: false, bower: false} 
});

CLI

$ npm install --global pkg-name
$ pkg-name --help
 
  Usage
    $ pkg-name <name>
 
  Examples
    $ bower-name multiline
    ✖ Unavailable
    $ bower-name unicorn-cake
    ✔ Available

License

MIT © Sindre Sorhus