🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

youtube-notification-module

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-notification-module

YouTube Notification Module

1.1.0
latest
Version published
Weekly downloads
6
20%
Maintainers
1
Weekly downloads
 
Created

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()

ParameterTypeReturns
channelsarrayPromise

Notifier.removeChannels()

ParameterTypeReturns
channelsarrayPromise

FAQs

Package last updated on 21 Aug 2021

Did you know?

Socket

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