Simple package that returns the color GitHub has defined for any programming language.

Installation

Via npm:

npm i github-lang-colors

Usage

const getColor = require ( ' github-lang-colors ' ) ; console . log ( getColor ( ' JavaScript ' ) ) ; console . log ( getColor ( ' PHP ' ) ) ;

Note that the function is not case-sensitive.

console . log ( getColor ( ' php ' ) ) ;

Language colors source