1.0.1 • Published 9 months ago

linguist-colors v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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.