2.0.6 • Published 3 years ago

twitch-new-api v2.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

Install

npm i twitch-new-api

Basic Usage

This package is written in TypeScript, so you can use it in both js and ts.

All of the methods are self documented, providing a good developer experience.

import { TwitchApi, TwitchCredentials } from '../src';

const twitchCredentials: TwitchCredentials = {
  id: 'twitch.client.id',
  secret: 'twitch.client.secret',
};

const twitch = new TwitchApi(twitchCredentials);

(async () => {
  const user = await twitch.getUserByName(['mechiller']);
  const profilePicture = user[0].profile_image_url;
})();

Contribution

I made this package for my own usage, if you need something specific, please, make an issue or PR.

License - MIT

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago