ejade-cli-alerts
v1.0.0
Published
Cross platform CLI Alerts with colors & colored symbols for success, info, warning, error. Works on macOs, Linux, Windows.
Downloads
14
Maintainers
Readme
Install
npm install ejade-cli-alertsUsage
const alert = require('ejade-cli-alerts);Provide the type, msg, and optional name
alert({
type: 'info',
msg: `Some general info for ya.`,
})
alert({
type: 'success',
msg: 'Everything finished!',
name: 'DONE',
})
alert({
type: 'success',
msg: 'Everything finished!',
})
alert({
type: 'warning',
msg: `You're getting pretty close`,
})
alert({
type: 'error',
msg: 'Boom things blow up!',
})