1.0.1 • Published 1 year ago
linguist-colors v1.0.1
linguist-colors
Generate colors for programming language or file,base on gitHub-linguist.
Install
You can install it in the following way:
via npm:
npm i linguist-colorsvia yarn:
yarn add linguist-colorsvia pnpm:
pnpm install linguist-colorsUsage
import linguistColors from "linguist-colors"
// Specify programming language to get color
linguistColors.getLangColor("TypeScript", 'HEX')
// Specify file extension to get color
linguistColors.getExtensionColor('.ts', 'HEX')Thanks
The project is refactored and improved based on LorenzoBloedow/programming-colors.
LICENSE
Code released under the MIT License. Docs released under Creative Commons.