Skip to content

Instantly share code, notes, and snippets.

@sramam
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save sramam/0c1c272a3ac43b2e7e5e to your computer and use it in GitHub Desktop.

Select an option

Save sramam/0c1c272a3ac43b2e7e5e to your computer and use it in GitHub Desktop.
npmls to determine package dependencies for a nodenev
# inspired by https://gist.github.com/nicholascloud/5372443
function npmls() {
npm ls --depth=0 | grep -v "^\/.*" | sed "s/└── //g" | sed "s/├── //g"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment