1.1.1 • Published 3 years ago

github-linguist-colours v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

GitHub Linguist Colours

travis npm version

Given a string denoting a programming language, return its corresponding GitHub linguist hex colour:

import { getHexColour, getColourMap } from 'github-linguist-colours';
getHexColour('Swift');

>#ffac45

You can also simply return the underlying object itself if you wish:

getColourMap();
>
  {
  ...
    graphql: '#e10098',
    groovy: '#e69f56',
    html: '#e34c26',
    hack: '#878787',
    haml: '#ece2a9',
    handlebars: '#f7931e',
    harbour: '#0e60e3',
    haskell: '#5e5086',
    haxe: '#df7900',
    hiveql: '#dce200',
    holyc: '#ffefaf',
  ...
  }
1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago