Socket
Socket
Sign inDemoInstall

simple-twitch-info

Package Overview
Dependencies
16
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-twitch-info

This package is for getting the current livestream information of the twitch streamer or getting the information of the user.


Version published
Weekly downloads
4
decreased by-63.64%
Maintainers
1
Install size
2.92 MB
Created
Weekly downloads
 

Readme

Source

#Information This package is for getting the current livestream information of the twitch streamer or getting the information of the user.

No reqiures API KEY ;) #Sample Getting stream

const simpleTwitch = require("simple-twitch-info");

simpleTwitch.getStream("cFyt").then(console.log).catch(console.error);

Output

{
  success: true,
  error: null,
  live: true,
  name: 'Eray - Twitch',
  title: 'erkenci',
  embedURL: 'https://player.twitch.tv/?channel=eray&player=facebook&autoplay=true&parent=meta.tag',
  thumbnails: [
    'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-80x45.jpg',
    'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-320x180.jpg',
    'https://static-cdn.jtvnw.net/previews-ttv/live_user_eray-640x360.jpg'
  ],
  upload: 2022-08-04T13:01:26.000Z,
  start: 2022-08-04T13:01:26.000Z,
  _end: 2022-08-04T17:01:26.000Z,
  _isLiveBroadcast: true
}

Getting user

const simpleTwitch = require("simple-twitch-info");

simpleTwitch.getUser("cFyt").then(console.log).catch(console.error);

Output

{
  username: 'cfyt',
  displayName: 'cFyt',
  description: 'https://cFyt.me - mail@cFyt.me',
  url: 'https://www.twitch.tv/cfyt',
  image: 'https://static-cdn.jtvnw.net/jtv_user_pictures/2aac32a9-40c1-42cc-8ce0-a94aa744760f-profile_image-300x300.png',
  player: 'https://player.twitch.tv/?channel=cfyt&player=facebook&autoplay=true&parent=meta.tag'
}

Keywords

FAQs

Last updated on 04 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc