🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

kequtwitch

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kequtwitch

This is a node library for interfacing with twitch

0.7.1
latest
Source
npm
Version published
Weekly downloads
59
883.33%
Maintainers
1
Weekly downloads
 
Created
Source

Home

This library is agnostic to the information is receives from Twitch, it delivers you all data in a simple format without any frills. It requires a small amount of effort to produce the behaviour you want compared to similar libraries but it is ultimately still pretty easy honestly.

Installation

This library is available on NPM. Make sure you have Node installed and create a new project, then install the kequtwitch module.

npm install --save kequtwitch

Usage

In your project require kequtwitch at the top.

const Twitch = require('kequtwitch');

Create an instance of kequtwitch passing a valid OAuth token as the first parameter.

const twitch = new Twitch('your-oauth-token');

You are now set up to use the library! If you are on the website please view the sidebar on the right or use Github for further documentation.

Quick start

The easiest way to see the library working is to login to a chatroom. A streamer's channel is their username prepended with # in lowercase.

const Twitch = require('kequtwitch');
const twitch = new Twitch('your-oauth-token');

(async function init () {
    await twitch.chat.connect();
    await twitch.chat.join('#channel');
})();

Chat activity will appear in your console.

Keywords

twitch

FAQs

Package last updated on 22 Jul 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