Get unlimited public & private packages + team-based management with npm Teams.Learn more »

twitch-getter

1.0.2 • Public • Published

Install

npm i twitch-getter

How to use

This package utilizes both Twitch's "New API" and "V5" API.
    // Package allows you to choose between both the V5 api and New API
    import { NewTwitchAPI, V5TwitchAPI } from 'newtwitchapi'
 
    (async() => {
    // twitchAPI NEEDS your twitch's clientID in order to work
    const newTwitchApi = new NewTwitchAPI(client_id: string)
 
    const response = await newTwitchApi.GetNewStreams({
      language: "en"
    });
    // Do something with the response
    })()

Install

npm i twitch-getter

DownloadsWeekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

25.4 kB

Total Files

18

Last publish

Collaborators

  • avatar