twitch-status

0.0.1 • Public • Published

Twitch Status

Installation

npm i twitch-status

Usage

All Chat Servers

const twitchStatus = require("twitch-status")
 
twitchStatus.chatServers.getAllChatServers().then(console.log)
 
/*
[
  {
    server: '52.38.176.250',
    protocol: 'irc',
    status: 'Online',
    errors: 0,
    lag: 166
  },
  {
    server: '52.41.51.80',
    protocol: 'irc',
    status: 'Online',
    errors: 0,
    lag: 110
  }...
]
*/

All Ingest Servers

twitchStatus.ingestServers.getAllIngestServers().then(console.log)
 
/*
[
  {
    server: 'Live-sfo.Twitch.TV',
    description: 'US West: San Francisco, CA',
    status: 'Online'
  },
  {
    server: 'Live-sjc.Twitch.TV',
    description: 'US West: San Jose,CA',
    status: 'Online'
  }...
]
 
*/

All Web Services

twitchStatus.webServices.getAllWebServices().then(console.log)
 
/*
[
  {
    service: 'API.Twitch.TV',
    description: "Twitch's external endpoint for data retrieval",
    status: 'Online',
    loadTime: 58
  },
  {
    service: 'TMI.Twitch.TV',
    description: 'Chat user lists (if this is down, mod status may also be broken)',
    status: 'Online',
    loadTime: 80
  }...
]
*/

Web Services By Name

twitchStatus.webServices.getWebServicesByName("API.Twitch.TV").then(console.log)
 
/*
[
  {
    service: 'API.Twitch.TV',
    description: "Twitch's external endpoint for data retrieval",
    status: 'Online',
    loadTime: 56
  }
]
*/

Web Services By Status (online & offline)

twitchStatus.webServices.getWebServicesByStatus("online").then(console.log)
 
/*
[
  {
    service: 'API.Twitch.TV',
    description: "Twitch's external endpoint for data retrieval",
    status: 'Online',
    loadTime: 260
  },
  {
    service: 'TMI.Twitch.TV',
    description: 'Chat user lists (if this is down, mod status may also be broken)',
    status: 'Online',
    loadTime: 169
  }
]
 
*/

Data extracted from Twitch Status

Package Sidebar

Install

npm i twitch-status

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

7.46 kB

Total Files

7

Last publish

Collaborators

  • korkron