Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

mika-archived/language-colors

Repository files navigation

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:

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

For example, 1C Enterprise is named as OneCEnterprise.

About

GitHub programming language colors for JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published