JSPM

twitchlib-helix

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q25338F
  • License MIT

A twitch helix library that provides easy use of the helix api

Package Exports

  • twitchlib-helix
  • twitchlib-helix/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (twitchlib-helix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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