@mikazuki/language-colors
v1.0.1
Published
GitHub programming language colors for JavaScript.
Downloads
8
Readme
language-colors
GitHub programming language colors for JavaScript.
Install
yarn add @mikazuki/language-colorsHow to use
In Browser
<script src="https://cdn.jsdelivr.net/npm/@mikazuki/language-colors"></script>
<script>
const colors = window.LanguageColors;
console.log(colors.Csharp);
</script>In Node.js
import { Csharp } from "@mikazuki/language-colors";
console.log(Csharp); // => #178600Some programming language names contains characters that are not allowed in the variable.
These characters are replaced by the following table of equivalents:
| Before | After |
| ----------- | ------- |
| ^1 | One |
| (space) | Empty |
| - | Empty |
| ' | Empty |
| # | sharp |
| + | plus |
| * | aster |
For example, 1C Enterprise is named as OneCEnterprise.
