1.0.1 • Published 3 years ago

jls-cli-alerts v1.0.1

Weekly downloads
11
License
-
Repository
-
Last release
3 years ago

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