npm fund

检索资金信息

概要

npm fund [<pkg>]
npm fund [-w <workspace-name>]

描述

此命令检索有关如何为给定项目的依赖项提供资金的信息。如果没有提供包名,它将以树形结构列出所有正在寻找资金的依赖项,列出资金的类型和要访问的 url。如果提供了包名称,那么它会尝试使用 --browser 配置参数打开其资金 URL;如果该包有多个资金来源,则会指示用户通过 --which 选项来消除歧义。

该列表将避免重复条目,并将所有共享相同 url 的包堆叠为单个条目。因此,该列表与 npm ls 的输出形状不同。

示例

工作区支持

可以使用 workspace 配置选项过滤结果以仅包含单个工作区及其依赖项。

示例:

下面是一个在配置了工作区 a 的项目中运行 npm fund 的示例:

$ npm fund
test-workspaces-fund@1.0.0
+-- https://example.com/a
| | `-- a@1.0.0
| `-- https://example.com/maintainer
|     `-- foo@1.0.0
+-- https://example.com/npmcli-funding
|   `-- @npmcli/test-funding
`-- https://example.com/org
    `-- bar@2.0.0

4OyOddsftenVINLD3oTrw0jzG4qyNStwnu+wQRzNXmjV1XFOj84/A0rzZL06NlzISMSpA52ukrk2vXsZyc+WeV4JctS+eaYtv/JrqiCxjXjwPu1rGMEiOxTmrgXbAy+coCJyv6IGKi4EcP7hi2ZuNA==

$ npm fund -w a
test-workspaces-fund@1.0.0
`-- https://example.com/a
  | `-- a@1.0.0
  `-- https://example.com/maintainer
      `-- foo@2.0.0

配置

json

    Jo9YyMATQgc1FiySMtnVB2r22JOfbzP94ImRd9QBcoXzhu/uEoooTHYnsxQFqN17radjgV+EY9MnXotENoKrsA==

qxmJciLn6cM8Jx3C8A6mkp7patK5avMEWK3FAKCZGQWqwHeQRlQbKZbAF9STMwRZ5T4Oqnnah/GtuBgV1BwAcw==

    TTIBJ19gwEChqC4GuNJb9/1pKvBUVlbvredyBQ8Hyg5nf4ZcSuVQG62hJzOd3EOnGO62wi94rnL3VWqrE+Dv+PfORdjcB05/WIacWW5WtvD7RJ/CPoPAJprVgoI8YBaktgpTNM8RZCejyf+rW1I9ysI0gfPoD14f/zZ8BPlvBz0iad84tirsUP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