New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ytdownload

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytdownload

Download YouTube Videos Easily (Now with CLI support!)

latest
Source
npmnpm
Version
2.1.1
Version published
Maintainers
2
Created
Source

Download YouTube Videos Easily

YTDownload allows you to download youtube videos easily. Now with CLI support!

Usage [CLI]

$ ytdownload <video_url>

example:

$ ytdownload https://www.youtube.com/watch?v=dQw4w9WgXcQ

Usage [Code]

/* ES6 */
import { download } from "ytdownload";

/* CommonJS*/
const { download } = require("ytdownload");

download("video_url");

// example
download("https://www.youtube.com/watch?v=dQw4w9WgXcQ").then((VideoPath) => {
	console.log(VideoPath); // => ./videos/Rick Astley - Never Gonna Give You Up (Video).mp4
});

Contact Me For More Help

Keywords

ytdl-core

FAQs

Package last updated on 21 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts