mac_notify

Show MAC notification

npm install mac_notify
12 downloads in the last week
21 downloads in the last month

MacOS notify

Notifications from Node.js apps.

Methods

send

var mac_notify = require('mac_notify');

//attributes
mac_notify.send('Title', 'subtitle', 'message', 'group');

//object
mac_notify.send({title: 'Title', subtitle: 'subtitle', message: 'message', group: 'group'});

Defaults

  • title — Notification
  • subtitle — NOW_DATE
  • message — Nothing
  • group — ALL

If you specify empty string (''), attribute will be turned off. If you padd null or undefined, attribute will be default.

Specifies the ‘group’ a notification belongs to. For any ‘group’ only one notification will ever be shown, replacing previously posted notifications. See terminal-notifier documentation.

©

Using terminal-notifier by alloy

npm loves you