1.0.4 β’ Published 1 year ago
emojify-cli-alerts v1.0.4
emojify-cli-alerts
A cross platform CLI Alerts with colors and colored symbols along with emojisπ₯³π₯³π₯³ for success, info, warning and error.Works on both MAC OS and Windows
install
npm install emojify-cli-alerts
usage
const cli_alerts = require("emojify-cli-alerts");
//pass the relevant options like {type,name,msg} , emojify
// default call
cli_alerts({});
//β ERROR oh no ! you have enetered incorrect options ..
// call with no emojify parameter deafult is false
cli_alerts({
type: "success",
msg: "hurrah !!! its done ..",
});
//β SUCCESS hurrah !!! its done ..
//call with emojify parameter
cli_alerts(
{
type: "success",
msg: "hurrah !!! its done ..",
},
true
);
//β SUCCESS hurrah !!! its done .. π π β¨ π₯³
//call with name parameter
cli_alerts(
{
type: "success",
msg: "hurrah !!! its done ..",
name: "done",
},
true
);
//β DONE hurrah !!! its done .. π π β¨ π₯³
cli_alerts(
{
type: "warning",
msg: "you haven't added the required parameters kindly check ..",
name: "parameter required",
},
true
);
//β PARAMETER REQUIRED you haven't added the required parameters kindly check .. π πΆ π¬
cli_alerts(
{
type: "info",
msg: "I am handsome..",
name: "self obsession",
},
true
);
//βΉ SELF OBSESSION I am handsome.. π π π§
cli_alerts(
{
type: "error",
msg: "something went wrongg...",
},
true
);
//β ERROR something went wrongg... π π€ π π€―
API
cli-alert(options,emojify)
options
Type : object
Accepted arguments :{type,msg,name}
Default : {}
emojify
Type : boolean
Deafult : false
you can specify the options below