npm-exists
1.0.1 • Public • Published npm-exists
check if a package exists on npm
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`');
}
});
exists('request', 'http://localhost:5432/')
.then(moduleExists => {
console.log(moduleExists);
});
License
MIT © 2016, Andrea Parodi
Package Sidebar
Install
Weekly Downloads