diff options
author | Leonard Martin <leonard.martin@gmail.com> | 2018-08-03 19:17:52 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-03 19:17:52 +0300 |
commit | 792c8c709dc7a445687aa0c8cba5c50bc4ed83fd (patch) | |
tree | 8217d5b351c7fe53970a49684027c67297f7a4f3 /bin/npm-cli.js | |
parent | 32e6947c60db865257a0ebc2f7e754fedf7a6fc9 (diff) |
audit: configurable audit level for non-zero exit (#31)
`npm audit` currently exits with exit code 1 if any vulnerabilities are found of any level.
Add a flag of `--audit-level` to `npm audit` to allow it to pass if only vulnerabilities below a certain level are found.
Example: `npm audit --audit-level=high` will exit with 0 if only low or moderate level vulns are detected.
Fixes: https://npm.community/t/245
PR-URL: https://github.com/npm/cli/pull/31
Credit: @lennym
Reviewed-By: @zkat
Diffstat (limited to 'bin/npm-cli.js')
0 files changed, 0 insertions, 0 deletions