npm-exists

1.0.1 • Public • Published

npm-exists

Greenkeeper badge

check if a package exists on npm

Build Status NPM module NPM downloads

Getting Started

Install:

npm install npm-exists --save

Usage:

const exists = require('npm-exists');
 
exists('request')
    .then(moduleExists => {
        if (moduleExists) {
            console.log('gosh, `request` name already taken!');
        } else {
            console.log('you can register `request`');
        }
    });
 
// use custom registry:
exists('request', 'http://localhost:5432/')
    .then(moduleExists => {
        console.log(moduleExists);
    });

License

MIT © 2016, Andrea Parodi

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    21
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    21
  • 0.1.0
    0

Package Sidebar

Install

npm i npm-exists

Weekly Downloads

21

Version

1.0.1

License

MIT

Unpacked Size

3.57 kB

Total Files

5

Last publish

Collaborators

  • parroit