0.1.2 • Published 12 years ago
terminal-notifier v0.1.2
Terminal Notifier
This module provides a node API for notifications on Mac OS X Lion by wrapping Eloy Durán's library https://github.com/alloy/terminal-notifier.
Installation
npm install terminal-notifierUsage
var notifier = require('terminal-notifier');
notifier('message text');
notifier('message with title', { title: 'Title' });Pass an object as the second argument to set additional options:
titleThe notification title. Defaults to ‘Terminal’.subtitleThe notification subtitle.groupA string which identifies the group the notifications belong to. Old notifications with the same ID will be removed.activateThe bundle identifier of the application to activate when the user clicks the notification.openThe URL of a resource to open when the user clicks the notification.executeA shell command to perform when the user clicks the notification.