Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

youtube-live-chat

1.0.1 • Public • Published

youtube-live-chat

Build Status

A library for get YouTube live chats

Demo

const YouTube = require('youtube-live-chat');
 
const yt = new YouTube('CHANNEL_ID_IS_HERE', 'APIKEY_IS_HERE');
 
yt.on('ready', () => {
  console.log('ready!')
  yt.listen(1000)
})
 
yt.on('chat', data => {
  console.log(data.snippet.displayMessage)
})
 
yt.on('error', error => {
  console.error(error)
})

Requirement

  • events ^1.1.1
  • request ^2.81.0

Install

$ npm install --save youtube-live-chat

License

MIT

Author

yuta0801

install

npm i youtube-live-chat

Downloadsweekly downloads

6

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability