一个Node.js模块用于发送跨平台系统通知:node-notifier
jopen
10年前
一个Node.js模块用于发送跨平台原生系统通知。在Mac使用 Notification Center 实现,在Linux使用notify-osd,在 Windows 8中使用,对于早期的Windows版本拥有一个可爱的任务栏气球。
易于使用
在 Mac, Windows, Linux 中显示原生通知或使用 Growl!
var notifier = require('node-notifier'); notifier.notify({ 'title': 'My notification', 'message': 'Hello, there!' });
要求
- Mac OS X: >= 10.8 or Growl if earlier.
- Linux: notify-osd installed (Ubuntu should have this by default)
- Windows: >= 8, task bar balloon if earlier or Growl if that is installed.
- General Fallback: Growl