Unlink scripts submodule and commit contents as normal directory
This commit is contained in:
1 parent
4f7dea111f
commit
6488b3ea85
48 files changed
+2876
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
module.exports = (text, startGreen, endGreen) => {
|
||||
const textLength = text.length;
|
||||
return [...text].map((char, index) => {
|
||||
const greenValue = Math.round(startGreen - ((startGreen - endGreen) * index / (textLength - 1)));
|
||||
return `\x1b[38;2;255;${greenValue};0m${char}`;
|
||||
}).join('');
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
const gradientText = require('./gradientText.js');
|
||||
|
||||
const IS_PM2 = 'pm_id' in process.env;
|
||||
|
||||
const color = code => IS_PM2 ? '' : `\x1b[38;2;${code}m`;
|
||||
const reset = IS_PM2 ? '' : '\x1b[0m';
|
||||
|
||||
const headerText = text => IS_PM2 ? text : gradientText(text, 145, 58);
|
||||
const authorText = text => IS_PM2 ? text : gradientText(text, 145, 88);
|
||||
|
||||
module.exports = Object.freeze({
|
||||
IS_PM2,
|
||||
color,
|
||||
reset,
|
||||
headerText,
|
||||
authorText,
|
||||
donate: '💗 If you find this project useful, consider supporting me: https://sefinek.net/donate',
|
||||
sniffcat: '📘 Consider reporting malicious addresses to SniffCat, a modern alternative to AbuseIPDB: https://sniffcat.com',
|
||||
});
|
||||
Reference in new issue
Block a user