Colorize console message ouputs
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerUtils.ts
1 import chalk from 'chalk';
2
3 export class WorkerUtils {
4 public static defaultExitHandler = (code: number): void => {
5 if (code !== 0) {
6 console.error(chalk.red(`Worker stopped with exit code ${code}`));
7 }
8 };
9 }