gpt4 book ai didi

node.js - 在 NPM 中,如何获取范围内的包列表?

转载 作者:行者123 更新时间:2023-12-03 12:14:57 34 4
gpt4 key购买 nike

我们正在开发自定义包,每个包都在范围内维护。例如:

  • @nest/common
  • @nest/core
  • @nest/microservice

  • 如何获取特定范围内可用的软件包列表?例如,我想查看 @nest 下的软件包列表. npm list返回所有包。

    最佳答案

    在 npm 上搜索显式范围将返回该范围的可用公共(public)包。
    例如:

    » npm search @nest
    NAME | DESCRIPTION | AUTHOR | DATE
    @nest/testing | Nest - the testing… | =wbhob | 2017-12-22
    @nest/core | Nest - the core… | =wbhob | 2017-12-22
    @nest/websockets | Nest - the… | =wbhob | 2017-12-22
    @nest/microservices | Nest - the… | =wbhob | 2017-12-22
    如果范围包含超过 20 个包,则需要使用 --searchlimit具有更高限制的选项,例如 npm --searchlimit=100 search @nestjs

    关于node.js - 在 NPM 中,如何获取范围内的包列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59266779/

    34 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com