Twitchlib Helix
A twitch helix library that provides easy use of the helix api
Install
npm install twitchlib-helix
Usage
import { StaticAuthProvider } from "twitchlib-auth";
import { TwitchHelix } from "twitchlib-helix";
// Create a TwitchHelix object with a StaticAuthProvider
const authProvider: StaticAuthProvider = new StaticAuthProvider("token");
const helix: TwitchHelix = new TwitchHelix(authProvider);
// Fetches games with the name "Escape from Tarkov"
const games = await helix.Games.GetGames(undefined, ["Escape from Tarkov"]);
console.log(games);