@mikazuki/language-colors
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @mikazuki/language-colors

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

36.7 kB

Total Files

10

Last publish

Collaborators

  • mikazuki