Skip to content

DjDeveloperr/ytdl_core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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