https://github.com/evanw/node-terminal-notifier
A node API for notifications on Mac OS X Lion
https://github.com/evanw/node-terminal-notifier
Last synced: about 2 months ago
JSON representation
A node API for notifications on Mac OS X Lion
- Host: GitHub
- URL: https://github.com/evanw/node-terminal-notifier
- Owner: evanw
- Created: 2013-01-20T04:40:43.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-02T17:59:50.000Z (almost 12 years ago)
- Last Synced: 2025-04-11T00:12:56.364Z (about 2 months ago)
- Language: JavaScript
- Size: 445 KB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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-notifier
### Usage
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:
* `title` The notification title. Defaults to ‘Terminal’.
* `subtitle` The notification subtitle.
* `group` A string which identifies the group the notifications belong to. Old notifications with the same ID will be removed.
* `activate` The bundle identifier of the application to activate when the user clicks the notification.
* `open` The URL of a resource to open when the user clicks the notification.
* `execute` A shell command to perform when the user clicks the notification.