Check if a name exists on npm
This package is almost identical to npm-name, but it's very lightweight cause it doesn't use lodash
.
npm install npm-name-exists
const exists = require('npm-name-exists')
await exists('fs') //=> true
await exists('miny') //=> true
await exists('my-dope-new-package') //=> false
MIT
Pablo Varela |