🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@3xanax/youtube-stream-status

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3xanax/youtube-stream-status

A node module to check if YouTube channel is live

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

youtube-stream-status

A node module to check if YouTube channel is live

preview

Installation

Node.js required

npm install @3xanax/youtube-stream-status

Usage

Require YouTube channel-id. Example: https://www.youtube.com/channel/UCiaoRUmpQ0mH05w9PVQzYPw UCiaoRUmpQ0mH05w9PVQzYPw is the channel-id string from the above url

const yt = require('@3xanax/youtube-stream-status');

yt.getStream("UCiaoRUmpQ0mH05w9PVQzYPw")
    .then(data => {
      console.log(data)
    })

Example output when Live:

  {
      "stream": {
          "_id": "UCiaoRUmpQ0mH05w9PVQzYPw"
      }
  }

Example output when Offline:

  {
      "stream": null
  }

Support & Issues

IMPORTANT: Help me beeing efficient, please! I am developing in my free time for no money. Contribute to the project by posting complete, structured and helpful issues which I can reproduce quickly without asking for missing information.

ko-fi

LICENSE

MIT

Keywords

youtube

FAQs

Package last updated on 05 Sep 2021

Did you know?

Socket

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