1.0.1 • Published 4 years ago
jls-cli-alerts v1.0.1
Usage
const alert = require('jls-cli-alerts');
// Provide the type, msg, and name options
alert({ type: `success`, msg: `All done!`, name: `DONE` });
alert({ type: `warning`, msg: `Something is wrong` });
alert({ type: `info`, msg: `Is this correct?` });
alert({ type: `error`, msg: `Nope!` });
API
alert(options)
>
Type: object
Default: {S}
type
type: string
default: error