Sha256: cec35223ce0a1d648b28a4c227b0f472721f6a0ba7e7d63d51fd660b0f2668cc

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

/* eslint-disable max-len */
var env = process.env;
var ADBLOCK = is(env.ADBLOCK);
var CI = is(env.CI);
var COLOR = is(env.npm_config_color);
var DISABLE_OPENCOLLECTIVE = is(env.DISABLE_OPENCOLLECTIVE);
var SILENT = !!~['silent', 'error', 'warn'].indexOf(env.npm_config_loglevel);

function is(it) {
  return !!it && it !== '0' && it !== 'false';
}

function log(it) {
  // eslint-disable-next-line no-console,no-control-regex
  console.log(COLOR ? it : it.replace(/\u001B\[\d+m/g, ''));
}

if (!ADBLOCK && !CI && !DISABLE_OPENCOLLECTIVE && !SILENT) {
  log('\u001B[96mThank you for using core-js (\u001B[94m https://github.com/zloirock/core-js \u001B[96m) for polyfilling JavaScript standard library!\u001B[0m\n');
  log('\u001B[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: \u001B[0m');
  log('\u001B[96m>\u001B[94m https://opencollective.com/core-js \u001B[0m');
  log('\u001B[96m>\u001B[94m https://www.patreon.com/zloirock \u001B[0m\n');
  log('\u001B[96mAlso, the author of core-js (\u001B[94m https://github.com/zloirock \u001B[96m) is looking for a good job -)\u001B[0m\n');
}

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
condenser-0.0.8 lib/condenser/processors/node_modules/core-js-pure/scripts/postinstall.js
jester-data-8.0.0 node_modules/core-js/scripts/postinstall.js
ezii-os-5.2.1 node_modules/core-js/scripts/postinstall.js
ezii-os-2.0.1 node_modules/core-js/scripts/postinstall.js
ezii-os-1.1.0 node_modules/core-js/scripts/postinstall.js
ezii-os-1.0.0 node_modules/core-js/scripts/postinstall.js
condenser-0.0.7 lib/condenser/processors/node_modules/core-js-pure/scripts/postinstall.js
ezii-os-0.0.0.1.0 node_modules/core-js/scripts/postinstall.js
ezii-os-0.0.0.0.1 node_modules/core-js/scripts/postinstall.js