@deegeemee/tweetshot-cli

0.0.2 • Public • Published

@deegeemee/tweetshot-cli

A Node.js CLI tool to take screenshots of tweets

Installation

npm install -g @deegeemee/tweetshot-cli

Usage

Set env var CHROME_BIN to the path of your Chrome executable, see https://github.com/deegeemee/tweetshot-cli/blob/main/.env.example

Usage: tweetshot-cli [options] <tweetUrl> <outputFile>

Take a screenshot of a tweet

Options:
  -V, --version            output the version number
  -w, --width <width>      Width of the screenshot, must be 220-550 (default: 550)
  -f, --format <format>    Output format, must be one of png, jpeg, or webp (default: "webp")
  -t, --theme <theme>      Theme to use, must be either light or dark (default: "dark")
  -q, --quality <quality>  Output quality, must be between 0 and 100, not applicable for png (default: 100)
  -h, --help               display help for command

Package Sidebar

Install

npm i @deegeemee/tweetshot-cli

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

5.42 kB

Total Files

9

Last publish

Collaborators

  • deegeemee