Returns video details + decoded stream urls ready to download.
let ytdlr = require('ytdlr')
let vid = await ytdlr('b6BgRnzAlVA')
// { details: {…}, formats: Array(26) }
<script src="https://unpkg.com/ytdlr/ytdlr.min.js"></script>
<script>
let vid = await window.ytdlr('b6BgRnzAlVA')
// { details: {…}, formats: Array(26) }
</script>