@lordxdd/yt-dl
v2.1.5
Published
YouTube-dl
Maintainers
Readme
yt-dl
A simple node.js wrapper for yt-dlp.
Installation
You can install this yt-dl via npm (npm i @lordxdd/yt-dl).
YT-dlp will be automatically downloaded.
Usage
const { ytadl, ytvdl, yts } = require('@lordxdd/yt-dl');
const fs = require('fs');
(async () => {
//Audio
const audioPath = await ytadl(videoId);
const audioBuffer = fs.readFileSync(audioPath);
//Video (default: 720p)
const videoPath = await ytvdl(videoId, quality);
const videoBuffer = fs.readFileSync(videoPath);
})();
