Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Martin <leonard.martin@gmail.com>2018-08-03 19:17:52 +0300
committerKat Marchán <kzm@zkat.tech>2018-08-03 19:17:52 +0300
commit792c8c709dc7a445687aa0c8cba5c50bc4ed83fd (patch)
tree8217d5b351c7fe53970a49684027c67297f7a4f3 /bin/npm-cli.js
parent32e6947c60db865257a0ebc2f7e754fedf7a6fc9 (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