color-printer
Version, currently master branch1 version
- master branchlatestJun 11, 2016
github.com/jwoertink/color-printer
Add color to your terminal with Crystal
Installation
# Add this to your shard.yml
dependencies:
color-printer:
github: jwoertink/color-printer
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Jeremy Woertink
Dependencies
This version declares no dependencies.
README
color-printer
puts some color in your terminal
Installation
Add this to your application's shard.yml:
dependencies:
color-printer:
github: jwoertink/color-printer
Usage
require "color-printer"
puts({:green, "Hello World"})
Because Crystal supports method overloading, your original puts still works the same.
NOTE
After writing this, I learned that Crystal has built in coloring using colorize, and I also came across Chalk Box which aims to do the same thing, but better, and more complete than this. I don't really expect people to want to use this, it's more for learning the language.
Development
Things left to add
- Add in background-colors
- Maybe write a spec or two
Contributing
- Fork it ( https://github.com/jwoertink/color-printer/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
Contributors
- [your-github-name] Jeremy Woertink - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 11, 2016
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/jwoertink/color-printer
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1