UNPKG

ytdlr

Version:

Simple YouTube Download Module

23 lines (18 loc) 519 B
## ytdlr ### Simple YouTube Download Module Returns video details + decoded stream urls ready to download. ### Use as node module ```js let ytdlr = require('ytdlr') let vid = await ytdlr('b6BgRnzAlVA') // { details: {…}, formats: Array(26) } ``` ### Use in browser ```html <script src="https://git.io/ytdlr"></script> <script> let vid = await window.ytdlr('b6BgRnzAlVA') // { details: {…}, formats: Array(26) } </script> ``` #### Fun fact: ytdlr.min.js consists of exactly 1000 bytes!