postinstall.js (544B)
1 #!/usr/bin/env node 2 3 'use strict'; 4 5 function isTrue(value) { 6 return !!value && value !== '0' && value !== 'false'; 7 } 8 9 let envDisable = isTrue(process.env.DISABLE_OPENCOLLECTIVE) || isTrue(process.env.CI); 10 let logLevel = process.env.npm_config_loglevel; 11 let logLevelDisplay = ['silent', 'error', 'warn'].indexOf(logLevel) > -1; 12 13 if (!envDisable && !logLevelDisplay) { 14 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'); 15 } 16 17