1.0.2 • Published 3 years ago

awesome-cli-alerts v1.0.2

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

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!
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago