ejade-cli-alerts

Cross platform CLI Alerts with colors & colored symbols for success, info, warning, error. Works on macOs, Linux, Windows.

Usage no npm install needed!

<script type="module">
  import ejadeCliAlerts from 'https://cdn.skypack.dev/ejade-cli-alerts';
</script>

README

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