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

7.0.1 • 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.

Package Sidebar

Install

npm i youtube-notifs

Weekly Downloads

43

Version

7.0.1

License

MIT

Unpacked Size

22.2 kB

Total Files

11

Last publish

Collaborators

  • james-bennett-295