Nodrrr is a module to allow sending Growl notifications from node.
Growl is a really cool "global notification system for Mac OS X".
This module does not yet support Growl 1.3 and up, due to change in protocol!
npm install nodrrr
var nodrrr = require('../lib/nodrrr');
var Ng = new nodrrr.Nodrrr({
host: 'localhost',
app: 'Node.js',
all_notifies: ['Node.js Growl Notification'],
default_notifies: ['Node.js Growl Notification']
});
Ng.register(function(err){
if(err) return;
Ng.notify('Node.js Growl Notification', 'Nodrrr', 'Node.js says grrrr', 0, false);
});
Creating a new Nodrrr Object
var n = new Nodrrr({
host: 'localhost',
app: 'Node.js',
all_notifies: ['Node.js Growl Notification'],
default_notifies: ['Node.js Growl Notification']
});
Register with Growl on the host and sent notification
n.register(function(err){
n.notify(type, title, msg, priority, sticky, function(err){
// Notification sent
})
});