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