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.

About

Ruby gem that returns the github color of a programming language

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published