hit-that

:fist: Render beautiful pixel perfect representations of websites in your terminal

Subscribe to updates I use hit-that


Statistics on hit-that

Number of watchers on Github 332
Number of open issues 0
Average time to close an issue 17 days
Main language JavaScript
Average time to merge a PR less than a minute
Open pull requests 0+
Closed pull requests 1+
Last commit 9 months ago
Repo Created over 2 years ago
Repo Last Updated 5 months ago
Size 355 KB
Homepage https://ponyfoo.com
Organization / Authorbevacqua
Contributors1
Page Updated
Do you use hit-that? Leave a review!
View hit-that activity
View on github
Latest Open Source Launches
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating hit-that for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

hit-that

Render beautiful pixel perfect representations of websites in your terminal

Installation

npm install -g hit-that

API

Hit That comes with a simple API where it exports just a function hitThat(url, options?). The first argument is the url you intend to render. The second argument is an optional configuration object.

  • width=1024 is the viewport width in pixels that we'll use for the screenshot
  • height=768 is the viewport height in pixels that we'll use for the screenshot
  • cols=80 is the amount of columns we'll allocate to the terminal representation
  • dest=process.stdout is the destination stream you want to pipe the results to.
var hitThat = require('hit-that');

hitThat('http://ponyfoo.com');

CLI

There's a command-line interface as well.

ht ponyfoo.com
Usage:

ht <url> --width [width] --height [height] --cols [cols]

Options:

  --width   Viewport width in pixels
  --height  Viewport height in pixels
  --cols    Terminal columns to use
  --help    Render this information
  --version Render version information

Example

Pony Foo rendered as an image in terminal

Pony Foo rendered as an image in terminal

Use it as a CLI banner!

Google.com banner

You'll get the best results when reducing the viewport width

Reduced viewport width at emberjs.com

(That site better be responsive!)

License

MIT

hit-that questions on Stackoverflow (View All Questions)
  • ElastiCache URL I can hit that always uses primary node
  • In MVC3, how can I create a route like mydomain.com/chigago and hit that route from a GET form?
  • If a server has a trusted certificate, What steps are needed to hit that link on IOS using NSURLConnection?
hit-that list of languages used
Other projects in JavaScript