Skip to content

Instantly share code, notes, and snippets.

@roc
Created May 15, 2015 13:28
Show Gist options
  • Save roc/b956928f107b7953375a to your computer and use it in GitHub Desktop.
Save roc/b956928f107b7953375a to your computer and use it in GitHub Desktop.
npm freeze
npm ls | grep -E "^(├|└)─" | cut -d" " -f2 | awk -v quote='"' 'BEGIN { FS = "@" } ; { print quote $1 quote,":",quote $2 quote"," }' | sed -e 's/ :/:/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment