EN FR
← Modules

jizy-messenger

A simple JS DOM messaging library.

Overview

A simple DOM messaging library for displaying flash messages, errors, warnings and informational notifications to the user.

Features

  • Support for message, error, info and warning levels
  • Configurable display timeout per message
  • Vanilla JavaScript, zero dependency

Installation

npm install jizy-messenger

Example

Alerts are pushed with add(message, type, cfg). One of each style is rendered below on load — some dismissible (with the × closer), some static.