1.0.4 • Published 1 year ago

cli-notification v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago