Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

atiur-cli-alerts

ati07220BSD3.0.4

This module is build for CLI Alerts

cli-alerts, atiur-cli-alerts

readme

cli-alerts screenshot

Cross platform CLI Alerts with colors & colored symbols for success, info, warning, error.
Work on macOS, Linux, and Windows.


Get to know cli-alerts use your command line in nodejs

Install

npm install atiur-cli-alerts

Usage

const alert = require('atiur-cli-alerts');

// Provide the type, msg, and name options.
alert({type: `success`, msg: `Everything finished!`});
// Prints: ✔ SUCCESS Everything finished!

alert({type: `success`, msg: `Everything finished!`, name: `DONE`});
// Prints: ✔ DONE Everything finished!

alert({type: `warning`, msg: `You didn't add something!`});
// Prints: ⚠ WARNING You didn't add something!

alert({type: `info`, msg: `Atiur is a good developer!`});
// Prints: ℹ INFO Atiur is a good developer!

alert({type: `error`, msg: `Something went wrong!`});
// Prints: ✖ ERROR Something went wrong!