Hi All,
I recently upgraded from Node 8.x to 12.x and the resulting upgrade of npm
showed all the security warnings of various levels, and there were a ton of them. I found this grep
command helpful to filter things down to Critical
for example, work on clearing those out, then shift to showing only High
level warnings:
npm audit | grep -E "(Critical)" -B3 -A10
you can also do an or/ ||
operator once things simmer down a bit:
npm audit | grep -E "(High || Moderate)" -B3 -A10
Made things a bit easier to manage, hope this helps someone else!