JSPM

  • Created
  • Published
  • Downloads 162131
  • Score
    100M100P100Q155119F
  • License MIT

Check whether a package name is available on npm

Package Exports

  • npm-name

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (npm-name) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm-name Build Status

Check whether a package name is available on npm

Install

$ npm install --save npm-name

Usage

var npmName = require('npm-name');

npmName('request', function (err, available) {
    console.log(available);
    //=> false
});

CLI

You can also use it as a CLI app by installing it globally:

$ npm install --global npm-name

Usage

$ npm-name --help

Usage
  $ npm-name <name>

Exits with code 0 when the name is available or 2 when taken

License

MIT © Sindre Sorhus