1 | var Notify = require("../index");
|
2 | var notifier = new Notify();
|
3 |
|
4 | notifier.notify({
|
5 | "message": "Hello"
|
6 | }
|
7 | , function (err, data) {
|
8 | if (err) {
|
9 | return console.error("Error: ", err);
|
10 | }
|
11 |
|
12 | console.log(data);
|
13 | });
|
14 |
|
15 |
|
16 | setTimeout(function() {
|
17 | console.log("Done");
|
18 | }, 5000); |
\ | No newline at end of file |