Use npm query and jq to dig into your package dependencies [5:32-min. video]
www.youtube.com
@elijahmanor
Elijah Manor uses jq to “further take the data from npm query and manipulate the results”. More information on these commands:
-
npm query (quoting The GitHub Blog): “npm query is a new top-level command as of npm v8.16.0 which accepts a Dependency Selector (as defined in the Dependency Selector Syntax Specification) and returns a filtered JSON Array/NodeList of dependencies from your project.”
-
jq (quoting jq ’s website): “jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed , awk , grep and friends let you play with text.”
New book – free online: “Shell scripting with Node.js” by Axel Rauschmayer
exploringjs.com
Sponsor
@rauschma
Learn Node.js, npm and packages and use them to create cross-platform shell scripts.
|