Skip to content

Instantly share code, notes, and snippets.

@malliapi
Last active February 11, 2021 03:54
Show Gist options
  • Save malliapi/9cf6635635a60eb730f57d75c956ae86 to your computer and use it in GitHub Desktop.
Save malliapi/9cf6635635a60eb730f57d75c956ae86 to your computer and use it in GitHub Desktop.
Dev Build Logger
import chalk from "chalk";
import figures from "figures";
module.exports = {
log: console.log,
error: (...messages) => console.error(chalk.red(figures.cross, ...messages)),
info: (...messages) => console.info(chalk.cyan(figures.info, ...messages)),
success: (...messages) => console.log(chalk.green(figures.tick, ...messages)),
warn: (...messages) => console.log(chalk.yellow(figures.warning, ...messages)),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment