一個Node.js模塊用于發送跨平臺系統通知:node-notifier
一個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
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!