Deno port of ytdl-core using Web Streams API.
importytdlfrom"https://deno.land/x/ytdl_core/mod.ts";conststream=awaitytdl("vRXZj0DzXIA");constchunks: Uint8Array[]=[];forawait(constchunkofstream){chunks.push(chunk);}constblob=newBlob(chunks);awaitDeno.writeFile("video.mp4",newUint8Array(awaitblob.arrayBuffer()));Check License for more info.
Copyright 2021 DjDeveloper, Copyright (C) 2012-present by fent