ayugioh2003 / today-i-learned

記錄每天看到的資訊(暫以前端技術為主)
7 stars 0 forks source link

(28) Use npm query and jq to dig into your dependencies - YouTube #1609

Open ayugioh2003 opened 1 year ago

ayugioh2003 commented 1 year ago

網址

記錄原因

滿酷的 可以從 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.”

觀念

學習點

相關資料