youtube-notifs
TypeScript icon, indicating that this package has built-in type declarations

7.0.2 • Public • Published

Receive events from YouTube video uploads!

View the documentation here.

Have any issues, questions, or suggestions? Open an issue on GitHub.

TypeScript example:

import { PollingNotifier, JsonStorage } from "youtube-notifs";

const notifier = new PollingNotifier({
    interval: 15,
    storage: new JsonStorage("youtube-notifs.json")
});

notifier.onNewVideos = (videos) => {
    for (const video of videos) {
        console.dir(video);
    }
}

notifier.subscribe("UCS0N5baNlQWJCUrhCEo8WlA");

notifier.start();

If using JavaScript, just replace the import line with the following:

const { PollingNotifier, JsonStorage } = require("youtube-notifs");

A program for receiving YouTube notifications on Discord using this package can be found here.

/youtube-notifs/

    Package Sidebar

    Install

    npm i youtube-notifs

    Weekly Downloads

    59

    Version

    7.0.2

    License

    MIT

    Unpacked Size

    22.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • james-bennett-295