Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

sindresorhus/pkg-name

Repository files navigation

Deprecated

Use npm-name instead.


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