@konsumer/ytdownload
v0.0.6
Published
Simple youtube video downloader CLI & library
Downloads
24
Readme
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, likedQw4w9WgXcQ
OUTFILE
- optional - the filename you want to outputSIZE
- 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.