npm.io
1.0.1 • Published 4 years ago

twitchlib-helix

Licence
MIT
Version
1.0.1
Deps
2
Size
36 kB
Vulns
23
Weekly
0

Twitchlib Helix npm

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);

Keywords