gpt4 book ai didi

javascript - 如何在 npm 中阻止广告?

转载 作者:行者123 更新时间:2023-12-01 15:16:36 25 4
gpt4 key购买 nike

当我运行各种 npm 命令时,控制台输出充满了各种项目和人员的广告。我是一个多产的开源贡献者,但工具的控制台输出不是广告的好地方。

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

...
...

Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/husky/donate

当我在寻找警告或错误时,这大约是 11 行输出,被着色以吸引我的注意力。

如何在 npm 中屏蔽广告?

最佳答案

您可以remove ads using the funding package通过添加环境变量:

OPEN_SOURCE_CONTRIBUTOR=true

一些使用 opencollective-postinstall 的软件包需要他们自己的命令:
DISABLE_OPENCOLLECTIVE=true

关于javascript - 如何在 npm 中阻止广告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60722968/

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