Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

alerts-in-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alerts-in-cli

Alerts in CLI, alerts in your terminal with colors and the moduel work corss-platform

latest
Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
10
42.86%
Maintainers
1
Weekly downloads
 
Created
Source

Alerts-In-CLI

This module helps you to manage your colorful alerts in Terminal. And they also care about the alerts are shown on any of the platforms like Windows, Linux, or Mac also.

It throws the message without blocking any other process so you can use it anywhere.

Installation

npm install alerts-in-cli

# or

yarn add alerts-in-cli

Usage

Options Types

  • success
  • info
  • warning
  • error
  • custom name

Type success

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

alerts({
	type: 'success',
	msg: 'Success alert'
});

Type info

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

alerts({
	type: 'info',
	msg: 'Info alert'
});

Type warning

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

alerts({
	type: 'warning',
	msg: 'Warning alert'
});

Type error

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

alerts({
	type: 'error',
	msg: 'Error alert'
});

Type custom

In the name parameter, you can enter the text of your choice, which will appear in the colored bullet, you can use it with any type. It is not mandatory to use name they are optional for use.

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

alerts({
	type: 'success',
	msg: 'File saved!',
	name: 'Done'
});

Keywords

alerts

FAQs

Package last updated on 07 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts