twitchlib-helix
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i twitchlib-helix

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

37 kB

Total Files

9

Last publish

Collaborators

  • dylansmr