Skip to content

[✔️ ℹ️ ⚠️ ✖] Cross platform CLI Alerts with colors & colored symbols for success, info, warning, error. Works on macOS, Linux, and Windows.

Notifications You must be signed in to change notification settings

dev-arminder/Command-Line-Alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-alerts

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

Install

npm install cli-alerts

Usage

const alert = require("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: `Awais is awesome!` });
// Prints: ℹ INFO Awais is awesome!

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

About

[✔️ ℹ️ ⚠️ ✖] Cross platform CLI Alerts with colors & colored symbols for success, info, warning, error. Works on macOS, Linux, and Windows.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published