imgcat
Crystal port of the iTerm2 imgcat script
- https://www.iterm2.com/documentation-images.html
- https://iterm2.com/utilities/imgcat
Installation
-
Add the dependency to your
shard.yml
:dependencies: imgcat: github: 0urobor0s/imgcat.cr
-
Run
shards install
Usage
require "imgcat"
content = File.read(filename)
Imgcat.cat(content, STDOUT)
Contributing
- Fork it (https://github.com/0urobor0s/imgcat.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request