Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I block advertising in npm?

Tags:

javascript

npm

When I run various npm commands, 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.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

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?

like image 602
mikemaccana Avatar asked Mar 17 '20 13:03

mikemaccana


People also ask

How can I block advertisements?

You can block ads on your Android phone by opening Chrome and tapping on the three-dot menu button. Go to Settings > Site settings > Ads and turn the toggle on.

How can I block Adblocking sites?

Instead, just visit the site's home page, click the AdBlock icon, and then choose the “Don't run on pages on this site” option. This open a new window—just click “Exclude” to allow ads across that domain. Done and done.

How do I block ads on multiple websites?

If an advertiser has multiple websites, you might have to block several ads. Learn how to get your ad preferences on all your devices. On Google Search on your phone or tablet, tap Info Why this ad. Turn off Show ads from [advertiser]. On YouTube, select Info Stop seeing this ad. On Gmail, select Info Control ads like this Block this advertiser.

What does it mean when an ad is blocked?

Blocking an ad stops you from seeing ads from that advertiser. If an advertiser has multiple websites, you might have to block several ads. Learn how to get your ad preferences on all your devices. On Google Search on your phone or tablet, tap Info Why this ad. Turn off Show ads from [advertiser].

How to block ads on safari?

How to Block Ads on Safari 1 Open Safari. 2 Go to the AdGuard extension page. 3 Click DOWNLOAD. 4 Click the "Downloads" arrow. 5 Double-click the AdGuard extension name. 6 ... (more items) See More....

How do I block ads on my Gmail account?

On Gmail, select Info Control ads like this Block this advertiser. At the top right of an ad, select Remove Stop seeing this ad. At the top right of an ad, select Remove Report this ad. You can also let us know about ads that violate our policies. Go to the Ad Settings page.


1 Answers

You 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 command instead:

DISABLE_OPENCOLLECTIVE=true
like image 178
Parth Raval Avatar answered Oct 23 '22 15:10

Parth Raval