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

0.2.1 • Public • Published

YouTube Auto DownLoader

Tests Publish

ytadl is a simple package to listen for new uploads on Youtube and stream them automatically.

Index

Overview

To get started, install the package:

npm install ytadl

The essence of the package is really simple. You import the class, instantiate a new one and listen for events just like with an EventEmitter. A simple example looks like the following:

import fs from "fs";

import Listener from "ytadl";

const listener = new Listener([{ name: 'Example Youtube channel'} ]);

listener.on('newItem', async (item) => {
	const writeStream = fs.createWriteStream(item.title);

	const stream = await item.stream();

	stream.pipe(writeStream);
});

Readme

Keywords

none

Package Sidebar

Install

npm i ytadl

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

180 kB

Total Files

15

Last publish

Collaborators

  • guusvanmeerveld2