0.1.1 • Published 5 years ago

post-notification-immediately v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

post-notification-immediately

A helper workaround module for Electron issue (#15789) to post notifications immediately via macOS distributed notification center. This module also can be used in any node.js application running on macOS.

Installation

$ npm install post-notification-immediately

Requires macOS 10.12 or later.

Usage

const postNotification = require('post-notification-immediately');

const userInfo = {
    data: 'Hey there! :)'
};

postNotification('kUniqueNotificationName',userInfo).then(
    () => {
        // sent successfully
    },
    (err) => {
        // error caused by payload parsing
    }
);

Maintainers

License

MIT