node-cli-alerts
v1.0.1
Published
Node cli prompt alerts
Downloads
4
Readme
cli-alerts
A node module which prompt out cli alerts
Install
npm install node-cli-alerts
Usage
const alerts = require('node-cli-alerts');
alert({type: `success`, msg: `Everything finished!`, name: `Done`});
alert({type: `warning`, msg: `You didn't add something!`});
alert({type: `info`, msg: `Elvis is awesome!`});
alert({type: `error`, msg: `Something went wrong!`});
// Provide the type, msg, and name options.
API
alert(options)
> options
Type: object Default: {} (optional)
You can specify the options below.
> type
Type: string Default: error
> msg
Type: string
Default: You forgot to define all options.
> name
Type: string Default: ``