UNPKG

yt-dlp-video

Version:

A robust video downloader built on yt-dlp for downloading and processing video content from various sources.

12 lines (11 loc) 308 B
const fs = require('fs'); const path = require('path'); const os = require('os'); try { const binPath = path.join(os.homedir(), '.yt-dlp-video', 'bin'); if (fs.existsSync(binPath)) { fs.rmSync(binPath, { recursive: true, force: true }); } } catch (error) { // Ignore cleanup errors }