Skip to content

Instantly share code, notes, and snippets.

@RomanHotsiy
Last active March 26, 2018 09:38
Show Gist options
  • Save RomanHotsiy/2ce3904d5c27217c122c045b372b538c to your computer and use it in GitHub Desktop.
Save RomanHotsiy/2ce3904d5c27217c122c045b372b538c to your computer and use it in GitHub Desktop.
function npm-ls-files() {
fname="$(npm pack)" && tar -ztf $fname | sed 's/^package\///g' && rm $fname
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment