viewers
Lists who is currently watching a given stream on Twitch
Last updated 4 months ago by tripplyons .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install viewers 
SYNC missed versions from official npm registry.

viewers

Lists who is currently watching a given stream on Twitch

Installation

npm i -s viewers

Usage

Here is an example from test.js:

const viewers = require('viewers')

async function logViewers(channelName) {
    console.log(await viewers(channelName))
}

// A popular 24/7 stream
logViewers('twitchplayspokemon')

It should output something similar to the following:

[
    { type: 'vip', name: 'tppsimulator' },
    { type: 'mod', name: 'honshoureimu' },
    { type: 'mod', name: 'red031000' },
    { type: 'mod', name: 'rjri' },
    { type: 'mod', name: 'sinr2014' },
    { type: 'mod', name: 'tpp' },
    { type: 'viewer', name: '1in256miss' },
    { type: 'viewer', name: '20superkoopatroopa02' },
    { type: 'viewer', name: '4td0' },
    ...
]

Here are all of the possible types of viewers:

  • broadcaster: The same person that is streaming
  • vip: A status given by the streamer to special viewers
  • mod: A status given by the streamer to moderators
  • staff: Someone who works at Twitch
  • admin: Someone who works at Twitch
  • global_mod: Someone who works at Twitch
  • viewer: An average user

Current Tags

  • 1.0.0                                ...           latest (4 months ago)

1 Versions

  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
  • r2 ^2.0.1
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |