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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    10
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    10
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i github-lang-colors

Weekly Downloads

10

Version

1.0.4

License

MIT

Unpacked Size

57 kB

Total Files

13

Last publish

Collaborators

  • lluiscamino