dank-twitch-api

0.0.1 • Public • Published

Dank-Twitch-Api

A library for using the twitch helix api

example:

import Client from "dank-twitch-api";
 
const main = async (): Promise<void> => {
  const client = new Client({
    clientId: "my-client-id",
    clientSecret: "my-client-secret",
  });
  try {
    const user = await client.getUser("destiny");
    console.log(user);
    const followers = await user.getFollowers(200);
    console.log(followers);
  } catch (error) {
    console.log("Error", error, error?.response?.body);
  }
};
 
main();

Readme

Keywords

Package Sidebar

Install

npm i dank-twitch-api

Weekly Downloads

9

Version

0.0.1

License

MIT

Unpacked Size

33.4 kB

Total Files

27

Last publish

Collaborators

  • johnpyp