Skip to content

SyedAbuTalib/language_colors

Repository files navigation

language_colors

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'.

Link to RubyGems

Installation

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

Usage

lc = LanguageColors::LanguageColors.new
lc.color('C++')
=> "#f34b7d"

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.