How to use the node-notifier/notifiers/notificationcenter function in node-notifier

To help you get started, we’ve selected a few node-notifier examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github streamlink / streamlink-twitch-gui / src / app / utils / notification / NotificationProviderNotificationCenter.js View on Github external
function NotificationProviderNotificationCenter() {
	let customPath = PATH.resolve(
		"bin", "darwin", "terminal-notifier.app", "Contents", "MacOS", "terminal-notifier"
	);

	// fix executable permissions
	FS.chmodSync( customPath, "755" );

	this.provider = new NotificationCenter({
		withFallback: false,
		customPath
	});
}