JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q38917F
  • License MIT

Interface with the twitch api

Package Exports

  • twitch.tvjs

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 (twitch.tvjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Twitch.tvjs

Interface with the twitch api

Example usage

const twitch = require('twitch.tvjs');
const client = new twitch.Client({
  channels: ['channel1', 'channel2'],
});

client.on('ready', () => {
  console.log(`${client.user.username} Ready`);
});

client.on('chat', (message) => {
  if (message.self) return;
  if (message.content === 'hello') {
    message.channel.send('hello there :)');
  }
});

client.login('<username>', 'oauth:<password>');