在路上

 找回密码
 立即注册
在路上 站点首页 学习 查看内容

一个Node.js模块用于发送跨平台系统通知:node-notifier

2016-12-20 13:17| 发布者: zhangjf| 查看: 531| 评论: 0

摘要: 一个Node.js模块用于发送跨平台原生系统通知。在Mac使用 Notification Center 实现,在Linux使用notify-osd,在 Windows 8中使用,对于早期的Windows版本拥有一个可爱的任务栏气球。 易于使用 在 Mac, Windows, ...

一个Node.js模块用于发送跨平台原生系统通知。在Mac使用 Notification Center 实现,在Linux使用notify-osd,在 Windows 8中使用,对于早期的Windows版本拥有一个可爱的任务栏气球。

一个Node.js模块用于跨平台发送系统通知:node-notifier 一个Node.js模块用于跨平台发送系统通知:node-notifier 一个Node.js模块用于跨平台发送系统通知:node-notifier

易于使用

在 Mac, Windows, Linux 中显示原生通知或使用 Growl!

  1. var notifier = require('node-notifier');
  2. notifier.notify({
  3. 'title': 'My notification',
  4. 'message': 'Hello, there!'
  5. });
复制代码
要求 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

项目主页:http://www.open-open.com/lib/view/home/1418971717808

最新评论

小黑屋|在路上 ( 蜀ICP备15035742号-1 

;

GMT+8, 2025-8-19 02:10

Copyright 2015-2025 djqfx

返回顶部