github-lang-colors

1.0.4 • Public • Published

github-lang-colors

npm version

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

Language colors source

/github-lang-colors/

    Package Sidebar

    Install

    npm i github-lang-colors

    Weekly Downloads

    15

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    57 kB

    Total Files

    13

    Last publish

    Collaborators

    • lluiscamino