@konsumer/ytdownload

0.0.6 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @konsumer/ytdownload

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

5.87 kB

Total Files

5

Last publish

Collaborators

  • konsumer