2023年11月2日 星期四

npm node_modules libary 的 license 檢查

 最近碰到一個案子需要檢查 package.json 裡面用的 libary 所有的 license,爬了一下npm 發現這個好用的 libary 

https://www.npmjs.com/package/license-checker

使用上

yarn dlx license-checker >> all_license.txt

這樣就會把 node_modules 裡面所有libary的 license 資訊拉出來。

沒有留言:

張貼留言