Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/verifynpm/tbv
Package verification for npm
https://github.com/verifynpm/tbv
javascript npm security
Last synced: 29 days ago
JSON representation
Package verification for npm
- Host: GitHub
- URL: https://github.com/verifynpm/tbv
- Owner: verifynpm
- License: mit
- Created: 2019-01-06T01:57:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T05:28:26.000Z (almost 3 years ago)
- Last Synced: 2024-05-01T13:47:30.254Z (7 months ago)
- Topics: javascript, npm, security
- Language: TypeScript
- Size: 191 KB
- Stars: 57
- Watchers: 5
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-nodejs-security - Trust But Verify - TBV compares an npm package with its source repository to ensure the resulting artifact is the same. (Static Code Analysis)
- awesome-nodejs-security - Trust But Verify - TBV compares an npm package with its source repository to ensure the resulting artifact is the same. (Static Code Analysis)
README
[![npm](https://img.shields.io/npm/v/tbv.svg)](https://www.npmjs.com/package/tbv)
[![verification](https://api.verifynpm.com/v0/packages/tbv/badge.svg)](https://api.verifynpm.com/v0/packages/tbv)# TBV (Trust but Verify)
Package verification for npm.
## How to:
### Verify packages from npm
1. Install globally: `npm i -g tbv`
1. 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]`)### View verbose output
1. Use the `verbose` option: `npm verify {package} --verbose`
### Run in a Docker container
1. Build the container: `npm run docker-build:{distro}`
* Current supported distros are `alpine`, `fedora`, and `jessie`
1. Run the container: `npm run docker-run:{distro} -- {package} [--verbose]`### Test a package before publication
1. Ensure that all commits have been pushed.
1. Test local directory: `tbv test`### Build from source
1. Run the build script: `npm run build`