1.0.1 • Published 5 years ago

@mikazuki/language-colors v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

language-colors

GitHub npm (scoped)

GitHub programming language colors for JavaScript.

Install

yarn add @mikazuki/language-colors

CDN : UNPKG | jsDelivr

How 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); // => #178600

Some programming language names contains characters that are not allowed in the variable.
These characters are replaced by the following table of equivalents:

BeforeAfter
^1One
(space)Empty
-Empty
'Empty
#sharp
+plus
*aster

For example, 1C Enterprise is named as OneCEnterprise.