This gem was created as a fast way to get the colors that Github uses to describe languages. returns a string in the form of '#00ff00'
.
Add this line to your application's Gemfile:
gem 'language_colors'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install language_colors
lc = LanguageColors::LanguageColors.new
lc.color('C++')
=> "#f34b7d"
Bug reports and pull requests are welcome on GitHub at https://github.com/SyedAbuTalib/language_colors. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.