Send notifications to the OS X Notification Center using terminal-notifier.app
npm install -g osx-notifier
osx-notifier--type type of icon to show;one of "info", "fail", or "pass" [default: "info"]--title title of the notification [default: "Terminal"]--subtitle subtitle of the notification--message message body of the notification [required]--group replace and be replaced by any notifications of the same group--remove remove any notifications previously posted with this group(or ALL groups)--list list notifications previously posted with this group(or ALL groups)--activate bundle identifier of an application to be activatedif the user clicks the notification--open open a url / file / custom url schemeif the user clicks the notification--execute execute a shell commandif the user clicks the notification--help print this help message--verbose print extra output--version print version
npm install osx-notifier
Or in your package.json:
var notify = ;var duration = 45;;
The Mac OS X Notification Center can only be accessed via signed apps, and any message sent from an application must be accompanied by the icon for that application.
Three variations on terminal-notifier are included with this app,
which are accessed via the different
var winston = ;var NotificationCenterTransport = ;winston;winston;
See the winston-notification-center project page for more options.
Copyright 2013 Christopher Brown. MIT Licensed.