postinstall.js 544 B

1234567891011121314151617
  1. #!/usr/bin/env node
  2. 'use strict';
  3. function isTrue(value) {
  4. return !!value && value !== '0' && value !== 'false';
  5. }
  6. let envDisable = isTrue(process.env.DISABLE_OPENCOLLECTIVE) || isTrue(process.env.CI);
  7. let logLevel = process.env.npm_config_loglevel;
  8. let logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1;
  9. if (!envDisable && !logLevelDisplay) {
  10. console.log('Thank you for installing \u001b[35mEJS\u001b[0m: built with the \u001b[32mJake\u001b[0m JavaScript build tool (\u001b[32mhttps://jakejs.com/\u001b[0m)\n');
  11. }