juuso-cli-alerts

1.0.2 • Public • Published

juuso-cli-alerts screenshot

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: ``

Package Sidebar

Install

npm i juuso-cli-alerts

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

3.85 kB

Total Files

4

Last publish

Collaborators

  • jaakjuus