UNPKG

mongo-migrations

Version:

Asynchronous MongoDB migration framework for Node.js based on node-migrate

11 lines (9 loc) 395 B
const chalk = require('chalk') module.exports = (key, msg) => console.log(' ' + chalk.grey(key) + ' : ' + chalk.cyan(msg)); module.exports.error = (key, msg) => { console.error(' ' + chalk.red(key) + ' : ' + chalk.white(msg)); if (msg instanceof Error) console.error(msg); }; module.exports.warning = (key, msg) => { console.log(' ' + chalk.yellow(key) + ' : ' + chalk.white(msg)); };