youtube-notification-module

1.1.0 • Public • Published

youtube-notifier

Sends notifications when added channels upload videos. Gets information via YouTube feeds.

Usage

const ytnotifier = require('youtube-notifier');
const Notifier = new ytnotifier({
    channels: ['A channel ID', 'Another channel ID'],
    checkInterval: 50 /* Interval to check the latest video. */
});

Notifier.on('video', video => {
    console.log(video);
    /*
    video = {
        channelName,
        title,
        publishDate,
        url,
        id
    };
    */
});

Methods

Notifier.addChannels()

Parameter Type Returns
channels array Promise

Notifier.removeChannels()

Parameter Type Returns
channels array Promise

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    181
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    181
  • 1.0.0
    1

Package Sidebar

Install

npm i youtube-notification-module

Weekly Downloads

3

Version

1.1.0

License

ISC

Unpacked Size

5.18 kB

Total Files

3

Last publish

Collaborators

  • kaihiwatari8