電子信的內容
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.”
網址
記錄原因
滿酷的 可以從 node_modules 撈出套件的資訊 然後再自己做重組或篩選 雖然我覺得我目前沒有機會用到 XD
電子信的內容 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.”
觀念
學習點
相關資料