awesome-cli-alerts

1.0.2 • Public • Published

awesome-cli-alerts

📟

[📟]

Install

npm install awesome-cli-alerts

Usage

const alert = require('awesome-cli-alerts');

// provide the message type and msg
alert({type: 'success', msg: 'Everything\'s fine'});
// prints: ✔ SUCCESS Everything's fine

// provide the message type and msg
alert({type: 'success', msg: 'Everything\'s fine', name: 'DB'});
// prints: ✔ DB Everything's fine

alert({type: 'info', msg: 'I am new to Open Source!!'});
// Prints: ⚠ INFO I am new to Open Source!!


alert({type: 'warning', msg: 'You forgot something!'});
// Prints: ℹ INFO You forgot something!


alert({type: 'error', msg: 'Something went wrong!'});
// Prints: ✖ ERROR Something went wrong!

Readme

Keywords

Package Sidebar

Install

npm i awesome-cli-alerts

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

4.01 kB

Total Files

4

Last publish

Collaborators

  • neero0x01