tview

1.2.5 • Public • Published

T-View: Open images inside the terminal!

T-View is an image viewer, that can load local files as well as web URL.

It is proudly powered by Terminal-kit.

First, install it globally (recommended): npm install -g tview.

Then, usage is: tview <file-path | web URL> [url2] [...] [option1] [option2] [...]

Options:

  • --move , -m : interactively move the image around
  • --scale , -s : scale relative to the terminal size (e.g.: 1 fits the terminal)
  • --help , -h : display the help

Examples:

  • tview some-image.jpg
  • tview some-image.jpg another-image.jpg
  • tview https://upload.wikimedia.org/wikipedia/commons/1/1e/Stonehenge.jpg
  • tview -m https://upload.wikimedia.org/wikipedia/commons/1/1e/Stonehenge.jpg
  • tview -m -s 3 https://upload.wikimedia.org/wikipedia/commons/1/1e/Stonehenge.jpg

If your terminal supports true colors, this would produce something like this:

True color example

If your terminal doesn't support true colors, the closest color in the available palette is used. Example with a 256 colors terminal:

256 colors example

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i tview

    Weekly Downloads

    0

    Version

    1.2.5

    License

    MIT

    Unpacked Size

    77.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • cronvel