简体   繁体   English

从 GitHub 存储库获取 NPM 软件包列表的最佳方法是什么

[英]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-mergepackage-merge的用途。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我在哪里可以从 Github 存储库中获取 NPM package 信息? - Where can I get NPM package information from a Github Repository? 使用 PowerShell 从文件夹中获取文件名的最快\最好的方法是什么? - What is the fastest\best way to get file names from a folder using PowerShell? 避免在GitHub Repo中粘贴复制代码的最佳方法是什么 - What's the best way to avoid copy-pasting code in a GitHub Repo 在WinMD文件中获取名称空间的最佳方法是什么? - What's the best way to get the namespaces in a WinMD file? 获取选择字符串输出的子字符串的最佳方法是什么? - What is the best way to get a substring of Select-String output? 如何使用 PowerShell 从 github 中的特定仓库获取文件列表? - How to get the list of files from particular repo in github using PowerShell? 从多个PowerShell线程收集和转换输出的最佳方法是什么? - What is the best way to collect and transform output from multiple PowerShell threads? 从Windows Powershell发送HTTP请求的最佳方法是什么? - What is the best way to send HTTP requests from Windows Powershell? 从 Azure 管道创建 git 标签的最佳方法是什么? - What is the best way to create git tags from Azure Pipelines? Powershell - 从字符串中提取句子的最佳方法是什么 - Powershell - What is the best way to extract sentences from string
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM