Wouldn't it be nice to have a command-line tool to check if an NPM package name is available for use?
A command-line tool to check if an NPM package name is available for use.
- 🔍 Check if a package name is available on npm
- 🎨 Colorful console output
- 🔗 Direct link to npm package page if name is taken
- ✅ Simple and easy to use
npm install -g verifyname
# or
pnpm add -g verifyname
verifyname <package-name>
# Check if "my-npm-package" is available
verifyname my-npm-package
# Check if "react" is available
verifyname react
When a package name is available:
✓ The package name 'my-npm-package' is available!
When a package name is taken:
✗ The package name 'react' is already taken.
View it at: https://www.npmjs.com/package/react
- Node.js >= 14
- pnpm (recommended) or npm
- Clone the repository
git clone <repository-url>
cd verifyname
- Install dependencies
npm install
#or
pnpm install
Run the test suite:
pnpm test
MIT © Mitul Patel