Skip to content

Cross platform CLI Alerts with colors and symbols suport for success, info, warning and error. Works on MacOS, Linux and Windows

License

Notifications You must be signed in to change notification settings

neero0x01/awesome-cli-alerts

Repository files navigation

awesome-cli-alerts

📟

[📟]

Install

npm install awesome-cli-alerts

Usage

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

// provide the message type and msg
alert({type: 'success', msg: 'Everything\'s fine'});
// prints: ✔ SUCCESS Everything's fine

// provide the message type and msg
alert({type: 'success', msg: 'Everything\'s fine', name: 'DB'});
// prints: ✔ DB Everything's fine

alert({type: 'info', msg: 'I am new to Open Source!!'});
// Prints: ⚠ INFO I am new to Open Source!!


alert({type: 'warning', msg: 'You forgot something!'});
// Prints: ℹ INFO You forgot something!


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

About

Cross platform CLI Alerts with colors and symbols suport for success, info, warning and error. Works on MacOS, Linux and Windows

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published