Skip to content

Commit 5da5475

Browse files
author
greguz
committed
Add repository to package.json
Add README.md
1 parent 33b4bbf commit 5da5475

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# node-raidar
2+
3+
4+
5+
Define error callback:
6+
7+
```
8+
raidar.on('error', function(err) {
9+
console.log('ERROR', err);
10+
});
11+
```
12+
13+
14+
15+
Define device info callback:
16+
17+
```
18+
raidar.on('device', function(device) {
19+
console.log(device.ip, device.hostname, device.mac, device.info.disk[0].status);
20+
});
21+
```
22+
23+
24+
25+
To request information from ReadyNAS devices:
26+
27+
```
28+
raidar.sendMagic();
29+
```
30+
31+
32+
License: MIT

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@
1111
"license": "MIT",
1212
"dependencies": {
1313
"lodash": "^3.4.0"
14+
},
15+
"repository" : {
16+
"type" : "git",
17+
"url" : "https://github.com/greguz/node-raidar.git"
1418
}
1519
}

0 commit comments

Comments
 (0)