Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
//
var Growl2 = require('node-notifier').Growl;
import * as fs from 'fs';
var notifier4 = new Growl2({
name: 'Growl Name Used', // Defaults as 'Node'
host: 'localhost',
port: 23053
});
notifier4.notify({
title: 'Foo',
message: 'Hello World',
icon: fs.readFileSync(__dirname + "/coulson.jpg"),
wait: false, // if wait for user interaction
// and other growl options like sticky etc.
sticky: false,
label: void 0,
priority: void 0
});
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({
'title': void 0,
'subtitle': void 0,
var custom = notify.withReporter(function (options, callback) {
new nn.Growl().notify(options, callback);
});
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);
}