1.0.3 • Published 4 months ago

alertify-cli v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Cross platform CLI Alerts with colors & colored symbols for success, info, warning, error. Work on macOS, Linux, and Windows.

alertify-cli

📟

Install

npm install alertify-cli

⚙️

Usage

const alert = require('alertify-cli');

// Provide the type, msg, and name options.
alert({ type: `success`, msg: `Everything finished!` });
// Prints: ✔ SUCCESS Everything finished!

alert({ type: `success`, msg: `Everything finished!`, name: `DONE` });
// Prints: ✔ DONE Everything finished!

alert({ type: `warning`, msg: `You didn't add something!` });
// Prints: ⚠ WARNING You didn't add something!

alert({ type: `info`, msg: `Awais is awesome!` });
// Prints: ℹ INFO Awais is awesome!

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

📃

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 all options. (Error message)

❯ name

Type: string Default: '' (Empty string)

📝

Changelog

❯ Read the changelog here →

KEY: 📦 NEW, 👌 IMPROVE, 🐛 FIX, 📖 DOC, 🚀 RELEASE, and 🤖 TEST

I use Emoji-log, you should try it and simplify your git commits.

📃

License & Conduct

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago