color codes for languages on Github
npm i colorful-github
import { getByLabel } from 'colorful-github1'
const { label, color } = getByLabel('typescript')
console.info('label:', label, 'color:', color)
function | parameter | describe |
---|---|---|
getByLabel | label: string | Returns the object with a color that matches the value entered as a parameter. |
getLabelsByColorCode | code: string | Returns labels that match the value entered as parameters as objects. |