Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/term-img-cli

Display images in iTerm
https://github.com/sindresorhus/term-img-cli

cli-app image iterm2 nodejs npm-package terminal-image

Last synced: 12 days ago
JSON representation

Display images in iTerm

Awesome Lists containing this project

README

        

# term-img-cli

> Display images in iTerm

![](screenshot.jpg)

*Currently only supported on [iTerm >=3](https://www.iterm2.com/downloads.html).*

## Install

```sh
npm install --global term-img-cli
```

## Usage

```
$ term-img --help

Usage
$ term-img
$ cat | term-img

Options
--width Width to render [N|Npx|N%]
--height Height to render [N|Npx|N%]

Examples
$ term-img unicorn.jpg --width=200px
$ cat unicorn.jpg | term-img --height=50%
```

## Related

- [term-img](https://github.com/sindresorhus/term-img) - API for this package
- [terminal-image-cli](https://github.com/sindresorhus/terminal-image-cli) - Like this module but works in any terminal