When I type npm outdated
it displays something similar to
Package Current Wanted Latest Location
columnify 1.1.0 1.1.0 1.2.1 /usr/local/lib > npm > columnify
cmd-shim 1.1.2 1.1.2 2.0.0 /usr/local/lib > npm > cmd-shim
...
I do not care much about cases when "Current" is the same as "Wanted". Is there a way to filter this?
npm outdated | awk '$2!=$3'
will do what you want.