npm audit --audit-level=high

Category: Node.js & npm/yarn

npm audit --audit-level=high

Only fail the audit check for vulnerabilities of high or critical severity

Makes 'npm audit' only exit with an error code for high/critical vulnerabilities, ignoring low/moderate ones. Common in CI to avoid blocking on minor issues.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.