juuso-cli-alerts
v1.0.2
Published
This package gives custom alerts
Downloads
4
Maintainers
Readme
Install
npm install juuso-cli-alerts
Usage
const alert = require('juuso-cli-alerts');
// Provide the type, msg, and name options
alert({type: `info`, msg: `Ground is awesome, beautiful, authentic!`, name: `HEAVENLY`});
alert({type: `warning`, msg: `Heaven has some extraordinary skills!`, name: `BASE`});
alert({type: `error`, msg: `Do not get overly confident about you!`});
alert({type: `success`, msg: `Be honest, humble and share your d33p3s7 shit!`, name: `DONE`})
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.
> name
Type: String
Default: ``