Cross Platform CLI Alerts
npm install cli-alert
const alert = require('cli-alert')
// You can choose between SUCCESS, INFO, WARNING, ERROR
alert()
// Prints: ✖ ERROR You forgot to define all options
alert({ type: 'success', msg: 'All Done!', name: 'Great' })
// Prints: ✔ GREAT All Done!
alert({ type: 'info', msg: 'This is a cool package' })
// Prints: ℹ INFO This is a cool package
alert({ type: 'warning', msg: "You didn't add something!" })
// Prints: ⚠ WARNING You didn't add something!
alert({ type: 'error', msg: 'Something went wrong mate' })
// Prints: ✖ ERROR Something went wrong mate
Type: object
Default: {}
Type: string
Default: error
Type: string
Default: You forgot to define all options
Type: string
Default: ``
KEY: 📦 NEW
, 👌 IMPROVE
, 🐛 FIX
, 📖 DOC
, 🚀 RELEASE
, and ✅ TEST
I use Emoji-log, you should try it and simplify your git commits.
- MIT © Tauqueer Khan
- Code of Conduct
- This readme was build using template and icons from Ahmad Awais