post-notification-immediately
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "post-notification-immediately", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A helper Electron & Node.js module to post notifications immediately via macOS distributed notification center", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# post-notification-immediately | ||
A helper workaround module for Electron issue ([#15789](https://github.com/electron/electron/issues/15789)) to post notifications immediately via macOS distributed notification center. This module also can be used in any `node.js` application running on `macOS`. | ||
@@ -17,7 +18,14 @@ ## Installation | ||
pickColor('kUniqueNotificationName',{ data: 'Hey there! :)' }).then(() => { | ||
// sent successfully | ||
},(err) => { | ||
// error caused by payload parsing | ||
}); | ||
const userInfo = { | ||
data: 'Hey there! :)' | ||
}; | ||
postNotification('kUniqueNotificationName',userInfo).then( | ||
() => { | ||
// sent successfully | ||
}, | ||
(err) => { | ||
// error caused by payload parsing | ||
} | ||
); | ||
``` | ||
@@ -24,0 +32,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14593
40