1.0.3 • Published 3 years ago
notify-v1 v1.0.3
Desktop Notifications
A node module for sending notifications in electron applications.
Dependencies
It requires electron environment.
npm install --save electron
Installation
npm install --save notify-v1
Quick Usage
const notifier = require('notify-v1')
const title="Test Notification";
const Message= "Appointment is scheduled in next 10 minutes."
const customNotificationWrapper=(value)=>{
alert(value)
}
notifier.CustomNotificationService(customNotificationWrapper,title,Message);
About
Electron environment is must to use this module.
When you create a new notification, your notification is stacked one below another, Each notification is a BrowserWindow instance, so it's completely cross platform.
It has both self-closing after notification lifetime expiry & manual close functionality as well.