プロジェクト
概要
:fist: Webサイトを美しく、ピクセル単位で忠実にターミナルへ描画します
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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=1024is the viewport width in pixels that we'll use for the screenshotheight=768is the viewport height in pixels that we'll use for the screenshotcols=80is the amount of columns we'll allocate to the terminal representationdest=process.stdoutis 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


Use it as a CLI banner!

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

(That site better be responsive!)
License
MIT
関連プロジェクトを探す
読み込み中…