Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'sound': false, // Case Sensitive string of sound file (see below)
'icon': 'Terminal Icon', // Set icon? (Absolute path to image)
'contentImage': void 0, // Attach image? (Absolute path)
'open': void 0, // URL to open on click
'wait': false // if wait for notification to end
}, function(error: any, response: any) {
console.log(response);
});
//
// Usage WindowsToaster
//
var WindowsToaster2 = require('node-notifier').WindowsToaster;
var notifier3 = new WindowsToaster2({
withFallback: false, // Fallback to Growl or Balloons?
customPath: void 0 // Relative path if you want to use your fork of toast.exe
});
notifier3.notify({
title: void 0,
message: void 0,
icon: void 0, // absolute path to an icon
sound: false, // true | false.
wait: false, // if wait for notification to end
}, function(error: any, response: any) {
console.log(response);
});
//
// Usage Growl
import WindowsToaster = require('node-notifier/notifiers/toaster');
new WindowsToaster(options).notify();
import Growl = require('node-notifier/notifiers/growl');
new Growl(options).notify();
import WindowsBalloon = require('node-notifier/notifiers/balloon');
new WindowsBalloon(options).notify();
var nn = require('node-notifier');
new nn.NotificationCenter(options).notify();
new nn.NotifySend(options).notify();
new nn.WindowsToaster(options).notify(options);
new nn.WindowsBalloon(options).notify(options);
new nn.Growl(options).notify(options);
//
// All notification options with their defaults:
//
var NotificationCenter2 = require('node-notifier').NotificationCenter;
var notifier2 = new NotificationCenter2({
withFallback: false, // use Growl if <= 10.8?
customPath: void 0 // Relative path if you want to use your fork of terminal-notifier
});
notifier2.notify({
const appCopyright = 'Copyright (c) 2015-2019 emsk';
let appDir = `${__dirname}.unpacked`; // Production
try {
fs.statSync(appDir);
} catch (err) {
appDir = __dirname; // Development
}
let nodeNotifier = require('node-notifier');
if (isMac) {
nodeNotifier = new nodeNotifier.NotificationCenter({
customPath: `${appDir}/custom/terminal-notifier.app/Contents/MacOS/terminal-notifier`
});
} else {
nodeNotifier = new nodeNotifier.WindowsToaster({
customPath: `${appDir}/custom/SnoreToast.exe`
});
}
const appIconFilePath = isMac ? null : `${appDir}/images/${colorIconFilename64}`;
let notifierScreen = null;
/**
* Class to check updated issues.
*/
class RedmineNotifier {
/**
* Initialize the RedmineNotifier object.
* @constructor
* @param {number} index - Index of the object.
function sendSystemNotification(notification) {
new nn.NotificationCenter().notify(notification);
new nn.NotifySend().notify(notification);
new nn.WindowsToaster().notify(notification);
//new nn.WindowsBalloon().notify(notification);
new nn.Growl().notify(notification);
}