admin管理员组文章数量:1321038
When I run various npm mands, the console output is filled with ads for various projects and people. I'm a prolific open source contributor, but console output for a tool is not a good place for advertising.
Thank you for using core-js ( ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
>
>
Also, the author of core-js ( ) is looking for a good job -)
...
...
Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
>
That's around 11 lines of output, colorised to grab my attention, when I'm looking for warnings or errors.
How do I block ads in npm?
When I run various npm mands, the console output is filled with ads for various projects and people. I'm a prolific open source contributor, but console output for a tool is not a good place for advertising.
Thank you for using core-js ( https://github./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./core-js
> https://www.patreon./zloirock
Also, the author of core-js ( https://github./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./husky/donate
That's around 11 lines of output, colorised to grab my attention, when I'm looking for warnings or errors.
How do I block ads in npm?
Share Improve this question edited May 12, 2020 at 16:08 mikemaccana asked Mar 17, 2020 at 13:01 mikemaccanamikemaccana 124k110 gold badges430 silver badges533 bronze badges 10- 1 I don't know the answer but have some good news for you infoq./news/2019/08/npm-bans-package-ads – Parth Raval Commented Mar 17, 2020 at 13:03
- 1 I don't think there's anything native that would work for all NPM packages, NPM has banned this practice so maybe just report them? – Ryan McDonough Commented Mar 17, 2020 at 13:05
- 4 How did somebody vote to close this as opinion-based? – Jared Smith Commented Mar 17, 2020 at 14:54
- 2 @ParthRaval The packages (and the OPEN_SOURCE_CONTRIBUTOR environment variable mentioned) mentioned in your article would make for a good answer. – mikemaccana Commented Mar 17, 2020 at 15:10
- 1 @ParthRaval - ditto what @mikemaccana suggests. You should change your ment into a formal answer. Even if you just quote the last two paragraphs from here it would suffice as a good answer. – RobC Commented Mar 18, 2020 at 9:46
2 Answers
Reset to default 6You can remove ads using the funding
package by adding an environment variable:
OPEN_SOURCE_CONTRIBUTOR=true
Some packages that use opencollective-postinstall need their own mand instead:
DISABLE_OPENCOLLECTIVE=true
for the opencollective
OPENCOLLECTIVE_HIDE=true
did the trick for me, more optins see https://github./nuxt/opencollective#disable-message for more disabling options
本文标签: javascriptHow do I block advertising in npmStack Overflow
版权声明:本文标题:javascript - How do I block advertising in npm? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742095245a2420507.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论