jls-cli-alerts
v1.0.1
Published
```js const alert = require('jls-cli-alerts');
Downloads
7
Maintainers
Readme
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