Backlinks

  • Hello

NpmLsJson

05 Feb 2018 (modified 05 Feb 2018)1 min read

  • jq

https://stackoverflow.com/questions/48629417/recursive-extraction-of-object-values-and-parent-key-name-using-jq/48629658#48629658

npm ls --global --json \
  | jq -r '..
           | .dependencies?
           | objects
           | to_entries[]
           | [.key, .value.version, "js", .value.resolved]
           | join(";")'

~nicolaw

Übergeek & CatLoaf Facilitator