1.0.0 • Published 4 years ago

ejade-cli-alerts v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Install

npm install ejade-cli-alerts

Usage

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!',
})