You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
384 B
13 lines
384 B
4 years ago
|
var twitchStreams = require('../');
|
||
|
|
||
|
twitchStreams.get('Monstercat')
|
||
|
.then(function(streams) {
|
||
|
console.log('Got stream data.');
|
||
|
|
||
|
for (var stream of streams)
|
||
|
console.log(stream.quality + ' (' + stream.resolution + '): ' + stream.url);
|
||
|
})
|
||
|
.catch(function(error) {
|
||
|
if (error)
|
||
|
return console.log('Error caught:', error);
|
||
|
});
|