tbv
tbv copied to clipboard
Package verification for npm
TBV (Trust but Verify)
Package verification for npm.
How to:
Verify packages from npm
- Install globally:
npm i -g tbv - Verify a package:
tbv verify {package}- To verify latest, use package name only (eg.
redux) - To verify a specific version, use name@version (eg.
[email protected])
- To verify latest, use package name only (eg.
View verbose output
- Use the
verboseoption:npm verify {package} --verbose
Run in a Docker container
- Build the container:
npm run docker-build:{distro}- Current supported distros are
alpine,fedora, andjessie
- Current supported distros are
- Run the container:
npm run docker-run:{distro} -- {package} [--verbose]
Test a package before publication
- Ensure that all commits have been pushed.
- Test local directory:
tbv test
Build from source
- Run the build script:
npm run build