dnx-ytdown
v1.0.3
Published
A command-line tool to download YouTube videos, music, or playlists as MP4 or MP3.
Maintainers
Readme
ytdown
A simple command-line tool to download YouTube videos, music, or playlists using yt-dlp.
Installation
Install the tool globally using npm:
npm install -g .(Note: Since this is a local project, you install it with .)
To publish and install from the registry, you would use:
npm install -g dnx-ytdownUsage
You can use ytdown directly from your command line after global installation, or you can use it without installation via npx.
Synopsis
ytdown <link> [options]Arguments
<link>: (Required) The URL of the YouTube video, music, or playlist you want to download.
Options
--format,-f: The format to download.- Choices:
mp3,mp4 - Default:
mp4
- Choices:
--output,-o: The directory where files will be saved.- Default: The current working directory.
--help,-h: Show the help message.
Examples
1. Download a video as MP4 (default format):
ytdown "https://www.youtube.com/watch?v=dQw4w9WgXcQ"2. Download a video as MP3 and save it to a specific folder:
ytdown "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --format mp3 --output "/home/user/Music/MyDownloads"3. Download a full playlist as MP3:
ytdown "https://www.youtube.com/playlist?list=PL..." --format mp34. Use with npx (no global installation needed):
This command assumes you are running it from within the project directory.
npx . "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --format mp3