isaacs/npm — pull request #3882 by thomblake (2013-09-10 22:39:21+00:00)
Title: Exit nonzero when ls returns no results.

Running `npm ls -p arglebargle` does not show anything but exits 0. It would be convenient if in that case it exited nonzero so that no results could be detected programmatically.

The first commit is a polyfill to make npm respect process.exitCode like node does now.