How to use the growly.setHost function in growly

To help you get started, we’ve selected a few growly 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 alan-ai / alan-sdk-reactnative / testtools / node_modules / node-notifier / notifiers / growl.js View on Github external
Growl.prototype.notify = function(options, callback) {
  growly.setHost(this.options.host, this.options.port);
  options = utils.clone(options || {});

  if (typeof options === 'string') {
    options = { title: 'node-notifier', message: options };
  }

  callback = utils.actionJackerDecorator(this, options, callback, function(
    data
  ) {
    if (data === 'click') {
      return 'click';
    }
    if (data === 'timedout') {
      return 'timeout';
    }
    return false;
github mikaelbr / node-notifier / notifiers / growl.js View on Github external
Growl.prototype.notify = function(options, callback) {
  growly.setHost(this.options.host, this.options.port);
  options = utils.clone(options || {});

  if (typeof options === 'string') {
    options = { title: 'node-notifier', message: options };
  }

  callback = utils.actionJackerDecorator(this, options, callback, function(
    data
  ) {
    if (data === 'click') {
      return 'click';
    }
    if (data === 'timedout') {
      return 'timeout';
    }
    return false;
github streamlink / streamlink-twitch-gui / src / app / services / notification / providers / growl.js View on Github external
async setup() {
		for ( let port of ports ) {
			try {
				await NotificationProviderGrowl.checkConnection( port );
				growly.setHost( host, port );
				await NotificationProviderGrowl.register();
				return;
			} catch ( e ) {}
		}
		throw new Error( "Could not find growl server" );
	}

growly

Simple zero-dependency Growl notifications using GNTP.

MIT
Latest version published 8 years ago

Package Health Score

65 / 100
Full package analysis