A while ago I wrote this post about a quick way to list just the top-level NPM modules, but it's worth saying that due to a recent bug in NPM,
--depth=0 doesn't work anymore.
Here's a hack you can use in your
.bash_profile for the same purpose until they fix the
npm list $@ | grep ^[├└]