Last active
November 28, 2018 23:27
-
-
Save jaan/794e7d27e28b935a1f8e434cae308b04 to your computer and use it in GitHub Desktop.
How to filter npm audit results by severity?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| `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