Releases: tamnd/npmjs-cli
Releases · tamnd/npmjs-cli
v0.1.0
First release. Five commands cover the most useful parts of the npm registry's
public API with no API key required.
Commands
| command | what it does |
|---|---|
npmjs search <query> |
search packages by name, description, or keywords |
npmjs package <name> |
show metadata for a package (version, author, license) |
npmjs versions <name> |
list all published versions, newest first |
npmjs deps <name> |
list runtime, dev, peer, and optional dependencies |
npmjs downloads <name> |
show weekly, monthly, and yearly download counts |
Output formats
Every command supports -o table|json|jsonl|csv|tsv|url|raw. Table is the
default on a terminal; JSONL is the default when piped, so the output composes
naturally with jq and other tools.
Install
# Homebrew
brew install tamnd/tap/npmjs
# Go
go install github.com/tamnd/npmjs-cli/cmd/npmjs@v0.1.0
# Docker
docker run --rm ghcr.io/tamnd/npmjs:0.1.0 search react -n 5
# Download binary
# https://github.com/tamnd/npmjs-cli/releases/tag/v0.1.0Quick start
npmjs search express -n 5
npmjs package lodash
npmjs versions react --limit 10
npmjs deps typescript
npmjs downloads expressScoped packages work without any special quoting:
npmjs package @types/node
npmjs deps @angular/core