Miss any of our Open RFC calls?Watch the recordings here! »

youtube-player-screenshot

0.0.3 • Public • Published

youtube-player-screenshot

Capture a YouTube player screenshot as a PNG file and, optionally, generate markdown code for it.

This project was developed to make embedding what appears to be clickable YouTube players (like the one bellow) effortless and scriptable.

How to create a Signal account without using your personal phone number - YouTube

Features

  • Super simple to use
  • Uses trusted dependencies (chalk, clipboardy, puppeteer, etc...)
  • Very light codebase to audit
  • Written in TypeScript

Installation

$ npm install youtube-player-screenshot -g

Usage

$ youtube-player-screenshot -h
Usage: youtube-player-screenshot [options]
 
Options:
  --url <url>        YouTube URL
  --width <width>    screenshot width (default: "680")
  --height <height>  screenshot height (default: "382")
  --output <output>  output folder (default: "/Users/sunknudsen/Desktop")
  --privacy          use privacy-enhanced mode
  --clipboard        copy markdown to clipboard
  --stdout           output markdown to stdout
  -h, --help         display help for command

--width and --height are doubled to generate high-DPI screenshots.

--output defaults to folder in which youtube-player-screenshot is executed.

Example

$ youtube-player-screenshot --url "https://www.youtube.com/watch?v=b9aMJZjZ4pw" --privacy --clipboard --stdout
[![How to create a Signal account without using your personal phone number - YouTube](how-to-create-a-signal-account-without-using-your-personal-phone-number.png)](https://www.youtube.com/watch?v=b9aMJZjZ4pw "How to create a Signal account without using your personal phone number - YouTube")

Markdown copied to clipboard 👍

$ file /Users/sunknudsen/Desktop/how-to-create-a-signal-account-without-using-your-personal-phone-number.png
/Users/sunknudsen/Desktop/how-to-create-a-signal-account-without-using-your-personal-phone-number.png: PNG image data, 1360 x 764, 8-bit/color RGBA, non-interlaced

Install

npm i youtube-player-screenshot

DownloadsWeekly Downloads

107

Version

0.0.3

License

MIT

Unpacked Size

736 kB

Total Files

10

Last publish

Collaborators

  • avatar