Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cli-alert-jib3v3

jibeve9MIT1.1.0

Cross platform cli-alert

cli-alert, jb, jib3v3, jibeve

readme

cli-alert made with node js

based on Ahmad Awais tutorial

cli-alert screenshot

Install

npm install cli-alerts

Usage


const alert = require('cli-alerts')

//Provide the type, msg and name of the options

alert({type: 'success', msg: 'All done!'});

alert({type: 'info', msg: 'No info for the moment!'});

alert({type: 'warning', msg: 'You did add nothing !'});

alert({type: 'error', msg: 'Something broke'});


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 options

You forgot to define options

> name

Type: string

Default : '' (Empty String)