UNPKG

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