Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    pkg-namepublic

    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

    install

    npm i pkg-name

    Downloadsweekly downloads

    77

    version

    1.0.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar