github-linguist
We use this library at GitHub to detect blob languages, highlight code, ignore binary files, suppress generated files in diffs, and generate language breakdown graphs.
Types
Docs
Guides
Zeitwerk
Namespace
Optimized
9.2.0
GitHub
cgi, charlock_holmes, mini_mime, rugged, minitest, rake-compiler, mocha, plist, pry, rake, yajl-ruby, licensed, licensee, bundler
bundle add github-linguist
Getting Started
Learn more about the Github-linguist gem.
Playground
Test, play and inspect the gem for yourself