cli-notification
v1.0.4
Published
![cli-notification screenshot](./.github/cli-alerts.png)
Downloads
9
Maintainers
Readme
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-notification
API
alert(options)
> options
Type: object Default: {}
You can specify the options below.
> type
Type: string Default: error
> msg
Type: string
Default: You forgot to define all options.
> name
Type: string
Default: ''
(Empty string)
Usage
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`
})