Skip to content

Instantly share code, notes, and snippets.

@jaan
Last active November 28, 2018 23:27
Show Gist options
  • Save jaan/794e7d27e28b935a1f8e434cae308b04 to your computer and use it in GitHub Desktop.
Save jaan/794e7d27e28b935a1f8e434cae308b04 to your computer and use it in GitHub Desktop.
How to filter npm audit results by severity?
`npm audit | grep -E "(High | Critical)" -B3 -A10` will show only High or critical vulnerabilities
Available severities to try: Low |High| Moderate | Critical
Replace the severities in the above command per your needs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment