Socket
Socket
Sign inDemoInstall

twitch-new-api

Package Overview
Dependencies
1
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    twitch-new-api

Twitchfa Helix Api Wrapper in TypeScript


Version published
Weekly downloads
7
increased by250%
Maintainers
1
Install size
169 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 27 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc