Skip to content

lluiscamino/github-lang-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

Get the color of a programming language easily! πŸ‘¨β€πŸ’»

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors