Simple package that returns the color GitHub has defined for any programming language.
Via npm:
npm i github-lang-colors
const getColor = require('github-lang-colors');
console.log(getColor('JavaScript')); // #f1e05a
console.log(getColor('PHP')); // #4f5d95
Note that the function is not case-sensitive.
console.log(getColor('php')); // #4f5d95