0.1.5 • Published 12 years ago

webnotify v0.1.5

Weekly downloads
22
License
-
Repository
github
Last release
12 years ago

Notify - Simple Web Notifications

Notify simplies the process to create a Web Notification.

Example

var notify = require('notify');

notify("Hello, World!", {
  "body": "This is an example message.",
  "tag": "unique_id",
  // Not applicable for Safair
  "iconUrl": "notification.gif",
  "onshow": function() {
    console.log("Notification Displayed");
  },
  "onclick": function () {
    console.log("The user clicked on the notification.");
  },
  "onclose": function() {
    console.log("The user ignored the notification.");
  },
  "onerror": function() {
    console.error("Something went wrong with the notification");
  }
});

Browser Support

Notify supports the following browsers:

  • Chrome 5+
  • Safari 6+

Reference Can I Use

Ender support

Notify supports Ender. If you don't have Ender, install it, and don't ever look back.

$ npm install ender -g

To include Query in a custom build of Ender you can include it as such:

$ ender build notify[,mod2,mod3,...]

Or add it to an existing Ender installation

$ ender add notify
0.1.5

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago