Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 572 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 572 Bytes

ytdl_core

Deno port of ytdl-core using Web Streams API.

Usage

import ytdl from "https://deno.land/x/ytdl_core/mod.ts";

const stream = await ytdl("vRXZj0DzXIA");

const chunks: Uint8Array[] = [];

for await (const chunk of stream) {
  chunks.push(chunk);
}

const blob = new Blob(chunks);
await Deno.writeFile("video.mp4", new Uint8Array(await blob.arrayBuffer()));

License

Check License for more info.

Copyright 2021 DjDeveloper, Copyright (C) 2012-present by fent