Skip to content

bakapear/ytdlr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ytdlr

Simple YouTube Download Module

Returns video details + decoded stream urls ready to download.

Use as node module

let ytdlr = require('ytdlr')

let vid = await ytdlr('b6BgRnzAlVA')
// { details: {…}, formats: Array(26) }

Use in browser

<script src="https://unpkg.com/ytdlr/ytdlr.min.js"></script>
<script>
  let vid = await window.ytdlr('b6BgRnzAlVA')
  // { details: {…}, formats: Array(26) }
</script>

Fun fact: ytdlr.min.js consists of exactly 1000 bytes!