Tha*_*aja 5 node.js npm package.json npm-scripts
我们正在开发自定义包,每个包都在范围内维护。例如:
@nest/common @nest/core @nest/microservice如何获取特定范围内可用的软件包列表?例如,我想查看@nest. npm list返回所有包。
for*_*all 13
npm 使用npms.io 的搜索 api [文档],其中包括以下内容:
\n\n\n除了普通文本之外,q还支持限定符来表达过滤器和其他修饰符:
\n\n
\n- \n
scope:types:显示/过滤属于的结果@types结果
$ curl -s "https://api.npms.io/v2/search?q=scope:nest" | jq -r \'.results[] | .package.name\'\n@nest/testing\n@nest/core\n@nest/microservices\n@nest/websockets\nRun Code Online (Sandbox Code Playgroud)\n\xc2\xbb npm search scope:nest\nNAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORDS\n@nest/testing | Nest - the testing\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\n@nest/core | Nest - the core\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\n@nest/microservices | Nest - the\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\n@nest/websockets | Nest - the\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\nRun Code Online (Sandbox Code Playgroud)\n更新于 2022-10-03
\n原答案:
\n在 npm 上搜索显式范围将返回该范围的可用公共包。
\n例如:
\n\xc2\xbb npm search scope:nest\nNAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORDS\n@nest/testing | Nest - the testing\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\n@nest/core | Nest - the core\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\n@nest/microservices | Nest - the\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\n@nest/websockets | Nest - the\xe2\x80\xa6 | =wbhob | 2017-12-22 | 4.5.4 |\nRun Code Online (Sandbox Code Playgroud)\n如果范围包含超过 20 个包,则需要使用--searchlimit具有更高限制的选项,例如npm --searchlimit=100 search @nestjs
| 归档时间: |
|
| 查看次数: |
1779 次 |
| 最近记录: |