linguist-colors
v1.0.1
Published
Programming language colors generated based on GitHub/linguist
Downloads
4
Maintainers
Readme
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-colors
via yarn:
yarn add linguist-colors
via pnpm:
pnpm install linguist-colors
Usage
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.