-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbanner.js
More file actions
46 lines (37 loc) · 1.39 KB
/
banner.js
File metadata and controls
46 lines (37 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
try {
if (
process.env.CI ||
process.env.ADBLOCK ||
process.env.DISABLE_OPENCOLLECTIVE ||
process.env.npm_config_ignore_scripts === "true" ||
process.env.NODE_ENV === "test"
) {
process.exit(0);
}
const loglevel = (process.env.npm_config_loglevel || "").toLowerCase();
if (loglevel === "silent") process.exit(0);
const reset = "\x1b[0m";
const cyan = "\x1b[36m";
const green = "\x1b[32m";
const yellow = "\x1b[33m";
const dim = "\x1b[2m";
const bold = "\x1b[1m";
const box = `${cyan}===============================================================${reset}`;
const msg = `
${box}
${green}${bold} Thanks for installing nope-click!${reset} ${green}🚀${reset}
${box}
${yellow}This project is community-supported.${reset}
If it saves you time, please consider supporting development:
${green}Boosty (Cards/PayPal):${reset} https://boosty.to/antonvoronezh/donate
${green}Crypto (Telegram):${reset} https://t.me/AntonVoronezhh/5
${dim}Tip: hide install messages with --silent (or npm config set loglevel silent).${reset}
${dim}Scripts can be disabled with --ignore-scripts (then this won’t run).${reset}
`;
process.stderr.write(msg);
process.stderr.write(
`${bold}Support:${reset} https://boosty.to/antonvoronezh/donate | https://t.me/AntonVoronezhh/5\n`
);
} catch (_) {
process.exit(0);
}