UNPKG

v3mt

Version:

A CLI toolkit for managing and deploying Victoria 3 mods, including sending mod files to the game, launching the game, and more.

24 lines (23 loc) 665 B
import chalk from 'chalk'; class Logger { static pass(message) { console.log(chalk.green(`✅ ${message}`)); } static text(message, ...optionalParams) { console.log(chalk.white(message), ...optionalParams); } static info(message) { console.log(chalk.blue(`ℹ️ ${message}`)); } static warn(message) { console.warn(chalk.yellow(`⚠️ ${message}`)); } static fail(message) { console.error(chalk.red(`❌ ${message}`)); } static kill(message, code = 1) { console.error(chalk.red.bold(`❌ ${message}`)); return process.exit(code); } } export default Logger;