twitchonlinetracker
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "twitchonlinetracker", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A library to help track streamers and fires an event if they go online.", | ||
@@ -26,3 +26,4 @@ "main": "lib/", | ||
"dependencies": { | ||
"axios": "^0.18.0" | ||
"axios": "^0.18.0", | ||
"dotenv": "^6.2.0" | ||
}, | ||
@@ -34,3 +35,2 @@ "devDependencies": { | ||
"chai": "^4.2.0", | ||
"dotenv": "^6.2.0", | ||
"mocha": "^5.2.0", | ||
@@ -37,0 +37,0 @@ "ts-node": "^7.0.1", |
{ | ||
"name": "twitchonlinetracker", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A library to help track streamers and fires an event if they go online.", | ||
@@ -26,3 +26,4 @@ "main": "lib/", | ||
"dependencies": { | ||
"axios": "^0.18.0" | ||
"axios": "^0.18.0", | ||
"dotenv": "^6.2.0" | ||
}, | ||
@@ -34,3 +35,2 @@ "devDependencies": { | ||
"chai": "^4.2.0", | ||
"dotenv": "^6.2.0", | ||
"mocha": "^5.2.0", | ||
@@ -37,0 +37,0 @@ "ts-node": "^7.0.1", |
@@ -69,2 +69,13 @@ # Track when Twitch streams go online | ||
### tracker.on('offline', function (channelName: string) { }) | ||
When a stream is found to have gone offline, fires this event. The callback function provides a string. | ||
Example: | ||
```javascript | ||
tracker.on('offline', function (channel) { | ||
console.log(`${channel} has gone offline.`) | ||
}) | ||
``` | ||
### tracker.on('error', function (error) { }) | ||
@@ -71,0 +82,0 @@ |
67235
7
90
2
+ Addeddotenv@^6.2.0
+ Addeddotenv@6.2.0(transitive)