color-printer
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
Repository
color-printer
Owner
Statistic
- 0
- 0
- 1
- 0
- 0
- over 8 years ago
- June 11, 2016
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 23:57:59 GMT
Languages