This is a simple info/download utility/library for youtube videos.
npx -y @konsumer/ytdownload <YOUTUBE_ID> [OUTFILE] [SIZE]
-
YOUTUBE_ID
- required - Your youtube-id, likedQw4w9WgXcQ
-
OUTFILE
- optional - the filename you want to output -
SIZE
- optional - one of these -hd1080|hd720|large|medium|small|tiny
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.