happa checks and prints the installed / resolved versions of specified packages, without needing to run pnpm list or pnpm why in each repository.
It is designed for easy list up of packages across many repositories at once, and to be used alongside other commands such as grep.
The term happa comes from the Japanese word for leaf. The name is a play on the leaves of a dependency tree.
Important
This tool only supports pnpm at the moment.
go install github.com/stefafafan/happa/cmd/happa@latestCheck the current repository for specified packages (in this case, react and vite):
happa react viteYou can also pipe package names from other commands, such as find or printf:
printf 'react\nvite\n' | happaCheck repositories with pnpm-workspace.yaml from a parent directory:
find . -mindepth 2 -maxdepth 2 -name pnpm-workspace.yaml -print \
| sed 's#/pnpm-workspace.yaml$##' \
| happa --repo - reactDefault output is TSV. If the package is not found, it is omitted from the output.
happa react installed 19.1.0
happa react resolved 19.1.0
Using alongside grep, happa makes it easy to check for specific versions.
happa react | grep '19.1.0'JSON is also available:
happa --format json react