[英]what is the best way to get list of NPM packages from GitHub Repositories
I would like to list all NPM packages available in a repository on GitHub and use code parsing to get just needed information of the packages using PowerShell.我想列出 GitHub 上的存储库中可用的所有 NPM 包,并使用代码解析来获取使用 PowerShell 的包的所需信息。
How do I identify these packages?.我如何识别这些包? if they are in packages.json file, there seems to be many of the "packages.json" file name in some repos.
如果它们在 packages.json 文件中,则某些存储库中似乎有许多“packages.json”文件名。
You can see multiple package.json files are part of nested dependencies, as seen here .您可以看到多个 package.json 文件是嵌套依赖项的一部分,如此处所示。
If you somehow had to see those dependencies (direct and indirect) as one package.json
, that is what json-merge
or package-merge
are for.如果您必须以某种方式将这些依赖项(直接和间接)视为一个
package.json
,那么这就是json-merge
或package-merge
的用途。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.