yt-dlp-dl
v1.0.1
Published
Downloads the latest version of yt-dlp
Downloads
427
Readme
yt-dlp-dl
Downloads the latest version of yt-dlp and keeps it updated.
Currently supports Windows, Linux, and macOS. yt-dlp-dl can also be used as a library.
Usage
CLI
Install yt-dlp-dl with either of the following, depending on your preferred package manager:
yarn global add yt-dlp-dl
npm install --global yt-dlp-dl
Then use it like so:
$ yt-dlp-dl # Download to the current directory
Downloading yt-dlp...
yt-dlp download complete
$ yt-dlp-dl ~/bin # Download to a specific directory
Downloading yt-dlp...
yt-dlp download complete
$ yt-dlp-dl # Checking for updates
Updating yt-dlp...
yt-dlp download complete
$ yt-dlp-dl
yt-dlp is already up to date
To uninstall, do one of the following, depending on how you installed it:
yarn global remove yt-dlp-dl
npm uninstall --global yt-dlp-dl
API
downloadYtDlp(directory, [logger=console])
Downloads the latest version of yt-dlp
to the specified directory. The downloaded file will be either yt-dlp
or yt-dlp.exe
depending on the platform.
If the file already exists, the download will only occur if the existing version is older than the latest version.
Returns a promise which resolves with true
if the download was attempted and completed, or false
if the latest version is already present.
Progress will be logged to the console by default. Alternatively, provide your own logger which implements the ILogger
interface, or null
to disable logging.