Check npm package name availability from the command line.
brew install arjunsajeev/tap/npmcheck
go install github.com/arjunsajeev/npmcheck@latest
Download the latest binary from the releases page.
Check if one or more package names are available on npm:
npmcheck my-awesome-package another-package
Output:
- ✅ indicates the package name is available
- ❌ indicates the package name is already taken
⚠️ indicates an error occurred while checking
# Check a single package
npmcheck my-new-package
# Check multiple packages at once
npmcheck pkg1 pkg2 pkg3
- Go 1.25 or later
Using just
(recommended):
# Install just: brew install just (or see https://github.com/casey/just)
# List all available commands
just
# Build the binary
just build
# Run tests
just test
# Run all checks
just ci
Or using make
:
# Build the binary
make build
# Run tests
make test
Or directly with Go:
# Build the binary
go build -o npmcheck
# Run tests
go test ./...
# Install locally
go install
To test the GoReleaser configuration locally without publishing:
goreleaser release --snapshot --clean
This project uses GoReleaser for automated releases.
To create a new release:
-
Tag the commit with a semantic version:
git tag -a v1.0.0 -m "Release v1.0.0" git push origin v1.0.0
-
GitHub Actions will automatically:
- Build binaries for multiple platforms (Linux, macOS, Windows)
- Create a GitHub release
- Update the Homebrew formula
MIT