See on GitHub

crystal-colord

A library for colored text in crystal

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      crystal-colord:
        github: jakeroggenbuck/crystal-colord
    
  2. Run shards install

Usage

require "crystal-colord"
message = CrystalColord::Colord.new "Hey"
message.cyan(background=true)
message.black
puts message.bold

Contributing

  1. Fork it (https://github.com/jakeroggenbuck/crystal-colord/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit)
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors