1.1.0 • Published 1 year ago

cli-alert-jib3v3 v1.1.0

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

#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)