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

@konsumer/ytdownload

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@konsumer/ytdownload

Simple youtube video downloader CLI & library

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
0
Created
Source

This is a simple info/download utility/library for youtube videos.

Usage

CLI

npx -y @konsumer/ytdownload <YOUTUBE_ID> [OUTFILE] [SIZE]
  • YOUTUBE_ID - required - Your youtube-id, like dQw4w9WgXcQ
  • OUTFILE - optional - the filename you want to output
  • SIZE - optional - one of these - hd1080|hd720|large|medium|small|tiny

Code

import getYoutubeInfo from '@konsumer/ytdownload'

const info = await getYoutubeInfo('dQw4w9WgXcQ')

Youtube seperates the audio/video streams, so you will need to figure out how to merge them. See my CLI for an example.

FAQs

Package last updated on 15 Jul 2024

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