1.2.2 โ€ข Published 4 years ago

cli-alerts v1.2.2

Weekly downloads
36
License
MIT
Repository
github
Last release
4 years ago

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

DOWNLOADS Node.js CLI Learn VSCode Sponsor Follow @MrAhmadAwais on Twitter

cli-alerts

๐Ÿ“Ÿ

Install

npm install cli-alerts

โš™๏ธ

Usage

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

// 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

๐Ÿ™Œ

Connect

๐Ÿ‘Œ

Sponsor

Me (Ahmad Awais) and my incredible wife (Maedah Batool) are two engineers who fell in love with open source and then with each other. You can read more about me here. If you or your company use any of my projects or like what Iโ€™m doing then consider backing me. I'm in this for the long run. An open-source developer advocate.

Or you can back me by checking out my super fun video course. As developers, we spend over 200 Hrs/month with our code editors โ€” it's only fair to learn your next editor deeply. This course will save you 15-20 hours every month. Become a VSCode Power User โ†’

VSCODE

VSCode Ahmad on Twitter

create-gattodotbackupdeferred-maintenanceotoz-api-testingfair-api-automation@ifqthenp/create-node-cli@iamrokt/todo-cliduration-cli@wdcli/tools@joeycrowle/regex-gen@nur.js/nurjs@node-update-release/nurjs@rameardo/cfw-clidhruvil-clicreate-file-cli-testget-wifi-pwdnac-climilind@everything-registry/sub-chunk-1335create-vite-react-eslint@bilalyaver/nodejs-boilerplate@alandawi/dau@bisaek/runvue@bisaek/vuerun@crissxross/create-node-cli@cryptago/web3-lib-cli@ezeamin/pre-build@gbrachetta/repocreate@gness1804/color-converters@gness1804/create-node-cli@elzains/kazima@guillermobrachetta/cli-todo@guineatech/224tech@guillermobrachetta/ncli@flowdegree/spit-it@fuzzywuzzyjs/cli@freshworks/crayons-icon@jupiterone/deferred-maintenance4m-app-cliserityshadisheet-pagestask-master-clitekstgjennomgangt3ksupreme-bot-by-pktest-cli-dontest-cli-donbasilpetertsf-cliumb-cliuni-xz-clistart-right-clistart-new-projectstykssub-adjusterstacker-plugin-clismart-makersmartmakesitemaps-comparesp-server-creatorthindtools-clickwithclarksvgxrtweespacestwopine-fundament-clizumito-clivhosurvalgeirvcreatevercel-no-commentssite-inspectsteam-otp-clit0ddutabz-clisystemviewwc23-cliwealweb3libwampark-devkitwappalyzer-multiplewappalyzer-multiple-2wifi-pswdwifi-revealervalidate-rss-sitemapwpp-spamwooffwordlesswordle-solved-cliworkflooseyala-component-cli@6degrees/source-code-spitter@aneeqkhurram007/img-cli@aneeqkhurram007/todo-cli@lowqualityrkomi/create-zendesk-app@infinitebrahmanuniverse/nolb-cli-a@iamrokt/create-new-cli@iamrokt/prayer-cli@maxklammer/move-component@maxklammer/new-blog@maxklammer/new-component
1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago