This is a Alert CLI made with nodejs. It has colors and symbols for success, error, warning and info. It is compatible with all platforms.
npm i alerting-cli
const alert = require('alerting-cli');
alert({
type: "error",
msg: "hello, it is a error!",
name: "FAILURE"
});
//provide the type, msg and name.
const alert = require("./index.js");
alert({
type: "info",
msg: "hello, it is a info!",
name: "Important Notice",
});
alert({
type: "success",
msg: "hello, it is a success!",
});
alert({
type: "warning",
msg: "hello, it is a warning!",
});
alert({
type: "error",
msg: "hello, it is a error!",
});
Type: object
Default : {}
Type: string
Default : ""
Type: string
Default : "all options not defined!"
- type - "error" , "success" , "warning" , "info"
- msg - you can provide any message you want.
- name - default name are: "SUCCESS","ERROR","WARNING" and "INFO". you can provide your own name as well