https://github.com/j-295/npm-youtube-notifs
Receive events from YouTube video uploads!
https://github.com/j-295/npm-youtube-notifs
notification notifications notifier notifs subscribe subscription youtube yt
Last synced: 7 months ago
JSON representation
Receive events from YouTube video uploads!
- Host: GitHub
- URL: https://github.com/j-295/npm-youtube-notifs
- Owner: J-295
- License: mit
- Created: 2021-10-14T14:55:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-20T13:21:06.000Z (about 1 year ago)
- Last Synced: 2024-10-11T03:22:10.480Z (12 months ago)
- Topics: notification, notifications, notifier, notifs, subscribe, subscription, youtube, yt
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/youtube-notifs
- Size: 184 KB
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Receive events from YouTube video uploads!
**View the documentation [here](https://github.com/J-295/npm-youtube-notifs/wiki).**
Have any issues, questions, or suggestions? [Open an issue on GitHub](https://github.com/J-295/npm-youtube-notifs/issues/new).
**TypeScript example:**
```ts
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:
```js
const { PollingNotifier, JsonStorage } = require("youtube-notifs");
```A program for receiving YouTube notifications on Discord using this package can be found [here](https://github.com/J-295/youtube-webhook).