A node module for sending desktop notification in electron applications.
const notifier =// Just titlenotifier// Full Optionsnotifier
npm install --save electron-notification-desktop
When you create a new notification, your notification is queued, since we only display one at a time. Each notification is a BrowserWindow instance, so it's completely cross platform.
All options are optional.
message: A message to display under the title.
icon: The absolute URL of a icon displayed to the left of the text ,image size 85px* 85px.
duration: A notification is closed after 4.5s by default. When specifying duration to null or 0, it will never be closed automatically.
Duration after which the notification is closed
const notification = notifier
In addition to the events provided by electron you also have access to the following additional events.
When the notification was clicked, but not dragged. This usually does the default action, or closes the notification.
const notification = notifiernotification