How to check for only high vulnerabilities when using "npm audit"?

Wajih picture Wajih · May 13, 2018 · Viewed 25.6k times · Source

When you I execute npm install using new npm 6 i got a messages that tell me I have some vulnerabilities :

[!] 75 vulnerabilities found [4867 packages audited]

Severity: 66 Low | 4 Moderate | 5 High

Run npm audit for more detail

I ran npm audit but got a truncated list of vulnerabilities.

How I can check for only High vulnerabilities list ?

Thanks

Answer

neo post modern picture neo post modern · May 13, 2018

Not the answer you are looking for, but it will do the same:

npm audit | grep -B 1 -A 10 High