2.0.2 • Published 3 years ago

cli-alerts-clone v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

cli-alerts screenshoot

cli-alerts

API documentation

alerts(options)

> options

Type: object Default: {}

You can specify the options below.

> type

Type: string Default: error

> msg

Type: string Default: You have not provided all options

> name

Type: string Default: ""

Usage

const alert = require('./index');

alert();
alert({ type: "success", msg: "success", name: "Done" });
alert({ type: "warning", msg: "warning" });
alert({ type: "info", msg: "info" });
alert({ type: "error", msg: "Error" });