NpmLsJson

5th February 2018 at 7:46pm
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(";")'