code-languages 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  Structured metadata for programming languages, packaged as a typed, tree-shakeable TypeScript library.
10
10
 
11
- `code-languages` is useful when you need a small source of truth for language names, slugs, file extensions, release metadata, websites, paradigms, and logos in developer tools, docs sites, learning platforms, or editor-like interfaces. It currently includes metadata for 38 languages.
11
+ `code-languages` is useful when you need a small source of truth for language names, slugs, file extensions, release metadata, websites, paradigms, and logos in developer tools, docs sites, learning platforms, or editor-like interfaces. It currently includes metadata for 39 languages.
12
12
 
13
13
  ## Features
14
14
 
@@ -48,6 +48,7 @@ import { astro } from "code-languages/astro";
48
48
  import { assembly } from "code-languages/assembly";
49
49
  import { bash } from "code-languages/bash";
50
50
  import { c } from "code-languages/c";
51
+ import { coffeescript } from "code-languages/coffeescript";
51
52
  import { cobol } from "code-languages/cobol";
52
53
  import { cpp } from "code-languages/cpp";
53
54
  import { csharp } from "code-languages/csharp";
@@ -84,6 +85,7 @@ console.log(astro.version);
84
85
  console.log(assembly.extensions);
85
86
  console.log(bash.version);
86
87
  console.log(c.extensions);
88
+ console.log(coffeescript.version);
87
89
  console.log(cpp.i18n.en.name);
88
90
  console.log(csharp.website);
89
91
  console.log(css.paradigms);
@@ -123,6 +125,7 @@ import {
123
125
  assembly,
124
126
  bash,
125
127
  c,
128
+ coffeescript,
126
129
  cpp,
127
130
  csharp,
128
131
  css,
@@ -164,6 +167,7 @@ console.log(detectLanguage("src/index.ts")?.slug);
164
167
  console.log(detectLanguages("include/config.h").map((language) => language.slug));
165
168
  console.log(localizeLanguage(bash, "es").description);
166
169
  console.log(c.version);
170
+ console.log(localizeLanguage(coffeescript).name);
167
171
  console.log(cpp.website);
168
172
  console.log(localizeLanguage(csharp).description);
169
173
  console.log(localizeLanguage(css).name);
@@ -265,6 +269,7 @@ console.log(detectLanguages("include/config.h").map((language) => language.slug)
265
269
  | <img src="https://cdn.simpleicons.org/assemblyscript/007AAC" alt="Assembly logo" width="24" height="24"> | Assembly | `assembly` | `.asm`, `.s`, `.S`, `.inc` | `Architecture-specific` | `code-languages/assembly` |
266
270
  | <img src="https://bashlogo.com/img/symbol/svg/full_colored_dark.svg" alt="Bash logo" width="24" height="24"> | Bash | `bash` | `.sh`, `.bash`, `.bashrc`, `.bash_profile`, `.bash_login`, `.profile` | `5.3` | `code-languages/bash` |
267
271
  | <img src="https://upload.wikimedia.org/wikipedia/commons/1/18/C_Programming_Language.svg" alt="C logo" width="24" height="24"> | C | `c` | `.c`, `.h` | `C23` | `code-languages/c` |
272
+ | <img src="https://cdn.simpleicons.org/coffeescript/2F2625" alt="CoffeeScript logo" width="24" height="24"> | CoffeeScript | `coffeescript` | `.coffee`, `.litcoffee`, `.cson` | `2.7.0` | `code-languages/coffeescript` |
268
273
  | <img src="https://logo.svgcdn.com/devicon/cobol-original.png" alt="COBOL logo" width="24" height="24"> | COBOL | `cobol` | `.cob`, `.cbl`, `.cobol`, `.cpy` | `ISO/IEC 1989:2023` | `code-languages/cobol` |
269
274
  | <img src="https://upload.wikimedia.org/wikipedia/commons/1/18/ISO_C%2B%2B_Logo.svg" alt="C++ logo" width="24" height="24"> | C++ | `cpp` | `.cpp`, `.cc`, `.cxx`, `.h`, `.hpp`, `.hh`, `.hxx` | `C++23` | `code-languages/cpp` |
270
275
  | <img src="https://upload.wikimedia.org/wikipedia/commons/b/bd/Logo_C_sharp.svg" alt="C# logo" width="24" height="24"> | C# | `csharp` | `.cs`, `.csx` | `14` | `code-languages/csharp` |
package/dist/detect.cjs CHANGED
@@ -144,6 +144,35 @@ var cobol = {
144
144
  }
145
145
  };
146
146
 
147
+ // src/languages/coffeescript.ts
148
+ var coffeescript = {
149
+ slug: "coffeescript",
150
+ publishedDate: "2009-12-25",
151
+ extensions: [".coffee", ".litcoffee", ".cson"],
152
+ author: "Jeremy Ashkenas",
153
+ website: "https://coffeescript.org",
154
+ paradigms: ["functional", "imperative", "object-oriented", "scripting"],
155
+ tooling: {
156
+ runtimes: ["Browser", "Node.js"],
157
+ packageManagers: ["npm", "pnpm", "Yarn"],
158
+ ecosystems: ["JavaScript", "Web", "Node.js"]
159
+ },
160
+ version: "2.7.0",
161
+ logo: "https://cdn.simpleicons.org/coffeescript/2F2625",
162
+ i18n: {
163
+ en: {
164
+ name: "CoffeeScript",
165
+ description: "A small language that compiles to JavaScript with concise syntax inspired by Ruby and Python.",
166
+ longDescription: "CoffeeScript adds a concise syntax over JavaScript with significant whitespace, function shortcuts, comprehensions, destructuring, classes, string interpolation, and other expressive conveniences.\n\nIt was widely used in earlier JavaScript application stacks and remains relevant in legacy projects, build pipelines, and codebases that prefer its compact syntax while targeting standard JavaScript."
167
+ },
168
+ es: {
169
+ name: "CoffeeScript",
170
+ description: "Un lenguaje pequeno que compila a JavaScript con sintaxis concisa inspirada en Ruby y Python.",
171
+ longDescription: "CoffeeScript agrega una sintaxis concisa sobre JavaScript con indentacion significativa, atajos para funciones, comprehensions, destructuring, clases, interpolacion de cadenas y otras comodidades expresivas.\n\nFue muy usado en stacks anteriores de aplicaciones JavaScript y sigue siendo relevante en proyectos legacy, pipelines de build y codebases que prefieren su sintaxis compacta mientras generan JavaScript estandar."
172
+ }
173
+ }
174
+ };
175
+
147
176
  // src/languages/cpp.ts
148
177
  var cpp = {
149
178
  slug: "cpp",
@@ -1068,6 +1097,7 @@ var languages = [
1068
1097
  assembly,
1069
1098
  bash,
1070
1099
  c,
1100
+ coffeescript,
1071
1101
  cobol,
1072
1102
  cpp,
1073
1103
  csharp,