cli-notification

1.0.4 • Public • Published

cli-notification screenshot

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`
})


Package Sidebar

Install

npm i cli-notification

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

3.82 kB

Total Files

4

Last publish

Collaborators

  • oluwafemiakinsiku