Deno port of ytdl-core using Web Streams API.
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()));
Check License for more info.
Copyright 2021 DjDeveloper, Copyright (C) 2012-present by fent