elnotifier

1.2.2 • Public • Published

elnotifier

A node module for sending notifications in electron applications.

screenshot

install

npm install elnotifier --save

Quick Usage

const notifier = require('elnotifier')

// Just title and content
notifier.notify('Notification', {
    message: 'Event begins in 10 minutes3'
});

Introduction

When you create a new notification, your notification is queued, since we only display one at a time. You get a BrowserWindow instance back from the call.

Clicked

When the notification was clicked, but not dragged. This usually does the default action, or closes the notification.

const notification = notifier.notify('Calendar')

notification.on('clicked', () => {
  notification.close()
})

Readme

Keywords

Package Sidebar

Install

npm i elnotifier

Weekly Downloads

0

Version

1.2.2

License

ISC

Last publish

Collaborators

  • wangky