UNPKG

@barecheck/scanner

Version:

Barecheck scanner to run static code analysis

24 lines (19 loc) 458 B
const chalk = require('chalk'); const { log, table } = console; const theme = { success: chalk.bold.green, error: chalk.bold.red, warning: chalk.bold.yellow }; const info = (message) => log(message); const error = (message) => log(theme.error(message)); const success = (message) => log(theme.success(message)); const warning = (message) => log(theme.warning(message)); module.exports = { theme, info, table, error, success, warning };