iterm2img

Crates.ioiterm2img
lib.rsiterm2img
version0.1.0
sourcesrc
created_at2023-05-07 08:38:52.665926
updated_at2023-05-07 08:38:52.665926
descriptionRust library for iTerm2 Inline Images Protocol
homepagehttps://github.com/lusingander/iterm2img
repositoryhttps://github.com/lusingander/iterm2img
max_upload_size
id859019
size118,511
Kyosuke Fujimoto (lusingander)

documentation

https://docs.rs/iterm2img/

README

iterm2img

Crate Status docs.rs

Rust library for iTerm2 Inline Images Protocol

Usage

let encoded = iterm2img::from_bytes(bytes)
    .width(5)
    .inline(true)
    .build();

println("{}", encoded);

See examples/main.rs for full code.

Running this on iTerm2 gives the following:

License

MIT

Commit count: 6

cargo fmt