glenpike/npm-g_nosudo — pull request #2 by pgilad (2014-10-16 07:32:01+00:00)
Title: Improve parsing of global npm packages

- Rely on npm --parseable output
- Use cut instead of awk
- grep (inverted) for exact match of npm (otherwise you might filter packages that contain npm word in them)
- clean empty lines with grep as well