npm-name-exists

October 22, 2017 ยท View on GitHub

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.

Install

npm install npm-name-exists

Usage

const exists = require('npm-name-exists')
await exists('fs') //=> true
await exists('miny') //=> true
await exists('my-dope-new-package') //=> false

License

MIT

Author

me
Pablo Varela