GitShow/sindresorhus/term-img
sindresorhus

term-img

Display images in iTerm

by sindresorhus
cli-utilityimageiterm2nodejsnpm-packageterminal-image
Star on GitHubForknpm

JavaScript

318 stars12 forks7 contributorsQuiet · 9mo agoSince 2016v7.1.0MIT

Meet the team

See all 7 on GitHub →
sindresorhus
sindresorhus32 contributions
kevva
kevva2 contributions
Richienb
Richienb2 contributions
BendingBender
BendingBender1 contribution
endernoke
endernoke1 contribution
MichaelDeBoey
MichaelDeBoey1 contribution
tmgldn
tmgldn1 contribution

Languages

View on GitHub →
JavaScript95.3%
TypeScript4.7%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 9mo ago
See all on GitHub →
sindresorhus
Support tmuxOpenIssue

It requires some wrapper escape codes to please it. https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat Specifically: I will get to this eventually, but I don't use tmux, so not a priority. A pull request would be welcomed :)

sindresorhus · 6y ago

Recent fixes

View closed PRs →
endernoke
Check for more terminals that supports the iterm2 inline images protocol.MergedPR

This PR expands terminal support for the package beyond iTerm2. Problem Besides iTerm2, some other terminals also implements support for the inline images protocol. Currently, this package throws an unsupported error even if it's used in a terminal that supports the protocol. There isn't a authoritative list of supported terminals on the internet, but I added checks for all those I know of. Changes (high-level) Added support and version checks for the following terminals: WezTerm (>= v20220319) Relevant: https://wezterm.org/imgcat.html Konsole (>= v22.04) Relevant: https://www.reddit.com/r/kde/comments/ul0irg/comment/i7tlrd5/ https://invent.kde.org/utilities/konsole/-/merge_requests/594 Rio (>= v0.1.13) Relevant: https://rioterm.com/docs/features/iterm2-image-protocol https://github.com/raphamorim/rio/releases/tag/v0.1.13 VSCode integrated terminal (>= v1.80) Relevant: https://code.visualstudio.com/updates/v1_80 Also see https://github.com/sindresorhus/ansi-escapes/pulls/39 Added tests for the new terminals and updated the test snapshots accordingly Slightly modified the test for iTerm2 so the test always behaves like it's running in a macOS environment Updated documentation in README with the expanded list of supported terminals Improved the error message in to clearly list all supported terminals and their minimum versions.

endernoke · 9mo ago
tmgldn
Add reference to alternative for kitty protocolMergedPR

Fixes #15

tmgldn · 4y ago
forivall
Support kitty cli graphics protocolClosedIssue

Protocol definition: https://sw.kovidgoyal.net/kitty/graphics-protocol.html Reference code: https://github.com/kovidgoyal/kitty/blob/main/kittens/icat/main.py Some reading that someone with more : https://github.com/weechat/weechat/issues/1430 According to the protocol document, xterm also supports this graphics protocol, although, i haven't tested it.

forivall · 4y ago
Structured data for AI agents

Repository: sindresorhus/term-img. Description: Display images in iTerm Stars: 318, Forks: 12. Primary language: JavaScript. Languages: JavaScript (95.3%), TypeScript (4.7%). License: MIT. Topics: cli-utility, image, iterm2, nodejs, npm-package, terminal-image. Latest release: v7.1.0 (9mo ago). Open PRs: 0, open issues: 1. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, kevva, Richienb, BendingBender, endernoke, MichaelDeBoey, tmgldn.

·@ofershap

Replace github.com with gitshow.dev