1.0.4 • Published 5 years ago
github-lang-colors v1.0.4
github-lang-colors
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')); // #f1e05a
console.log(getColor('PHP')); // #4f5d95
Note that the function is not case-sensitive.
console.log(getColor('php')); // #4f5d95