3.0.4 • Published 4 months ago
atiur-cli-alerts v3.0.4
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!