Permalink
Browse files

Added JS usage in README

  • Loading branch information...
1 parent 30be298 commit 2832bf5b8da698ee239b54347d3b8572aae86f66 @olalonde committed Apr 1, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.md
View
@@ -12,6 +12,14 @@ Manually:
node-waf configure && node-waf build
+## Usage ##
+
+ var notify = require("notify"); // or "../build/default/gtknotify.node" if you build manually
+ var notification = new notify.notification();
+ notification.title = "Notification title";
+ notification.icon = "emblem-default"; // see /usr/share/icons/gnome/16x16
+ notification.send("Notification message");
+
## References ##
- [https://www.cloudkick.com/blog/2010/aug/23/writing-nodejs-native-extensions/]()

0 comments on commit 2832bf5

Please sign in to comment.