Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 502 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 502 Bytes

YouTube Video Downloader

A simple Node.js package to download YouTube videos using yt-dlp.

Installation

npm i youtube-videos-downloader-tool

Usage

const { downloadYouTubeVideo } = require('youtube-videos-downloader-tool');

// Example YouTube URL
const url = 'https://www.youtube.com/watch?v=BIINqfBOz1c';

downloadYouTubeVideo(url)
  .then(result => {
    console.log(result);
  })
  .catch(error => {
    console.error('Error downloading video:', error);
  });