Capture YouTube player screenshot and, optionally, generate markdown code for it.
npm install youtube-player-screenshotThis project was developed to make embedding what appears to be clickable YouTube players (like the one bellow) effortless and scriptable.

- Super simple to use
- Uses trusted dependencies (chalk, clipboardy, puppeteer, etc...)
- Very light codebase to audit (less than 100 lines)
- Written in TypeScript
``shell`
npm install youtube-player-screenshot -g
`console
$ cd /Users/sunknudsen/Desktop
$ youtube-player-screenshot -h
Usage: youtube-player-screenshot [options]
Options:
--url
--width
--height
--scale
--type
--output
--output defaults to folder in which youtube-player-screenshot is executed.
`console
$ cd /Users/sunknudsen/Desktop
$ youtube-player-screenshot --url "https://www.youtube.com/watch?v=b9aMJZjZ4pw" --scale 3 --privacy --clipboard --stdout

`
Markdown copied to clipboard 👍
`console``
$ file how-to-create-signal-account-without-using-personal-phone-number.png
how-to-create-signal-account-without-using-personal-phone-number.png: PNG image data, 1920 x 1080, 8-bit/color RGB, non-interlaced