1.0.7 • Published 3 years ago
@iamrokt/cli-alert v1.0.7
Usage
const alert = require('cli-alert');
// Provide the type, msg, and name options
alert({type: 'info', msg: 'Operation completed!'});
alert({type: 'success', msg: 'All done!', name: 'DONE'});
alert({type: 'warning', msg: 'Deprecated API. See documentation!'});
alert({type: 'error', msg: 'Soemthing went wrong!'});
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 set all the options!
> name
Type: string
Default: ''
(Empty string)