cli-alert-jib3v3
v1.1.0
Published
Cross platform cli-alert
Downloads
13
Readme
#cli-alert made with node js
based on Ahmad Awais tutorial
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)