Cross platform CLI Alerts with colors & colored symbols for success, info, warning, error. Work on macOS, Linux, and Windows.
npm install cli-notification
Type: object
Default: {}
You can specify the options below.
Type: string
Default: error
Type: string
Default: You forgot to define all options.
Type: string
Default: ''
(Empty string)
import {alert} from 'cli-notification
alert({
type: `success`,
msg: `Everything is complete!`
})
alert({
type: `info`,
msg: `Dont forget to use lowercase`
})
alert({
type: `warning`,
msg: `You didn't add something`
})
alert({
type: `error`,
msg: `Something went wrong`
})