UNPKG

meo-forkcy-logger

Version:

A flexible logger and banner printer for CLI bots using colored console output.

45 lines (36 loc) 1.04 kB
// banner.js - Example usage of printMergedTableWithBanner const colors = require("meo-forkcy-colors"); const { printMergedTableWithBanner } = require("../index.js"); const CONFIGS = { skipInvalidProxy: false, delayEachAccount: [5, 8], timeToRestartAllAccounts: 300, howManyAccountsRunInOneTime: 36, doTasks: true, playGames: true, referralCodes: [], }; console.log("👉 Demo: printMergedTableWithBanner"); // Basic usage printMergedTableWithBanner("Botname1", CONFIGS); // With left column in red printMergedTableWithBanner("Botname2", CONFIGS, colors.red); // With custom colors for left columns printMergedTableWithBanner("Botname3", CONFIGS, colors.skyBlue, colors.red); // With custom colors for both left and right columns printMergedTableWithBanner( "Botname4", CONFIGS, colors.white, colors.red, colors.skyBlue ); // Full color customization printMergedTableWithBanner( "Botname5", CONFIGS, colors.gray, colors.skyBlue, colors.white, colors.red );