Same thing as git snippet, stuff I can never remember but is useful.
# grab a list of packages for a project # --depth=0 important unless you need a huge tree view of your project npm list --depth=0