New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dilipalert

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dilipalert

Customizable terminal notifier for success, warning, danger, info with styling options

latest
npmnpm
Version
1.0.4
Version published
Maintainers
0
Created
Source

dilipalert 🚀✨

dilipalert is a powerful, dependency-free notification package that works seamlessly in both the terminal and the browser! It allows developers to display colorful, customizable alerts in Node.js apps, browser pages, or Angular components — all without additional dependencies.

✨ Features

  • Terminal Notifications: Customizable messages with types: success, warning, danger, info
  • Browser Notifications: Stylish, positionable pop-ups
  • Fully Configurable: Control box size, borders, colors, and animation
  • Zero Dependencies
  • Compatible with Node.js (>=10), Angular, Vanilla JS, and React

📦 Installation

npm install dilipalert

📦 dilipalert Usage Guide

1️⃣ Terminal / Node.js

const { alert } = require('dilipalert');

alert({
  message: 'Operation Completed!',
  type: 'success', // Options: 'success', 'warning', 'danger', 'info'
  style: {
    border: 'double', // Options: 'single', 'double', 'round'
    padding: 1,
    margin: 1,
  },
  position: 'top', // Options: 'top', 'middle', 'bottom'
});

2️⃣ Browser / Angular / React

import { notifier } from 'dilipalert';

notifier({
  message: 'Welcome to dilipalert!',
  type: 'info', // Options: 'success', 'warning', 'danger', 'info'
  position: 'top-right', // Options: 'top-left', 'top-right', 'bottom-left', 'bottom-right'
  animation: 'slide', // Options: 'fade', 'slide', etc.
  style: {
    backgroundColor: '#4caf50',
    color: '#fff',
    fontSize: '16px',
  },
});

🛠️ Options

OptionDescriptionDefault
messageThe notification text''
typeType of notification (success, warning, danger, info)info
styleObject to customize style (border, padding, colors){}
positionPosition of notification (top, middle, bottom, top-left, etc.)middle
animationEntry animation in browser notifications (fade, slide, etc.)fade

🚀 Example in Angular

import { Component, OnInit } from '@angular/core';
import { notifier } from 'dilipalert';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
})
export class AppComponent implements OnInit {
  ngOnInit() {
    notifier({
      message: 'Angular Notification Ready!',
      type: 'success',
      position: 'bottom-right',
      animation: 'fade',
    });
  }
}

Keywords

notifications

FAQs

Package last updated on 19 Mar 2025

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