code-languages 1.8.0 → 1.9.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 44 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 58 languages.
12
12
 
13
13
  ## Features
14
14
 
@@ -49,6 +49,7 @@ import { asp } from "code-languages/asp";
49
49
  import { astro } from "code-languages/astro";
50
50
  import { assembly } from "code-languages/assembly";
51
51
  import { bash } from "code-languages/bash";
52
+ import { batch } from "code-languages/batch";
52
53
  import { c } from "code-languages/c";
53
54
  import { cmake } from "code-languages/cmake";
54
55
  import { coffeescript } from "code-languages/coffeescript";
@@ -60,6 +61,8 @@ import { cuda } from "code-languages/cuda";
60
61
  import { dart } from "code-languages/dart";
61
62
  import { dockerfile } from "code-languages/dockerfile";
62
63
  import { fsharp } from "code-languages/fsharp";
64
+ import { git } from "code-languages/git";
65
+ import { gradle } from "code-languages/gradle";
63
66
  import { graphql } from "code-languages/graphql";
64
67
  import { groovy } from "code-languages/groovy";
65
68
  import { javascript } from "code-languages/javascript";
@@ -102,6 +105,7 @@ console.log(asp.extensions);
102
105
  console.log(astro.version);
103
106
  console.log(assembly.extensions);
104
107
  console.log(bash.version);
108
+ console.log(batch.extensions);
105
109
  console.log(c.extensions);
106
110
  console.log(cmake.extensions);
107
111
  console.log(coffeescript.version);
@@ -111,6 +115,8 @@ console.log(css.paradigms);
111
115
  console.log(cuda.version);
112
116
  console.log(dockerfile.i18n.en.name);
113
117
  console.log(fsharp.version);
118
+ console.log(git.extensions);
119
+ console.log(gradle.extensions);
114
120
  console.log(graphql.version);
115
121
  console.log(groovy.version);
116
122
  console.log(javascript.website);
@@ -355,6 +361,7 @@ console.log(detectLanguages("include/config.h").map((language) => language.slug)
355
361
  | <img src="https://astro.build/assets/press/astro-icon-light.svg" alt="Astro logo" width="24" height="24"> | Astro | `astro` | `.astro` | `6.3.1` | `code-languages/astro` |
356
362
  | <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` |
357
363
  | <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` |
364
+ | <img src="https://icons.iconarchive.com/icons/simpleicons-team/simple/128/windowsterminal-icon.png" alt="Batch logo" width="24" height="24"> | Batch | `batch` | `.bat`, `.cmd` | `Windows Command Processor` | `code-languages/batch` |
358
365
  | <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` |
359
366
  | <img src="https://cmake.org/wp-content/uploads/2023/08/CMake-Logo.svg" alt="CMake logo" width="24" height="24"> | CMake | `cmake` | `CMakeLists.txt`, `.cmake` | `4.3.2` | `code-languages/cmake` |
360
367
  | <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` |
@@ -366,7 +373,9 @@ console.log(detectLanguages("include/config.h").map((language) => language.slug)
366
373
  | <img src="https://commons.wikimedia.org/wiki/Special:FilePath/Dart_programming_language_logo.svg" alt="Dart logo" width="24" height="24"> | Dart | `dart` | `.dart` | `3.11.6` | `code-languages/dart` |
367
374
  | <img src="https://www.docker.com/wp-content/uploads/2022/03/Moby-logo.png" alt="Dockerfile logo" width="24" height="24"> | Dockerfile | `dockerfile` | `Dockerfile`, `.dockerfile` | `1.10` | `code-languages/dockerfile` |
368
375
  | <img src="https://cdn.simpleicons.org/fsharp/378BBA" alt="F# logo" width="24" height="24"> | F# | `fsharp` | `.fs`, `.fsi`, `.fsx`, `.fsscript` | `10` | `code-languages/fsharp` |
376
+ | <img src="https://cdn.simpleicons.org/git/F05032" alt="Git logo" width="24" height="24"> | Git | `git` | `.git`, `.gitignore`, `.gitattributes`, `.gitmodules`, `.gitkeep` | `2.54.0` | `code-languages/git` |
369
377
  | <img src="https://go.dev/blog/go-brand/Go-Logo/SVG/Go-Logo_Blue.svg" alt="Go logo" width="24" height="24"> | Go | `go` | `.go` | `1.26.3` | `code-languages/go` |
378
+ | <img src="https://cdn.simpleicons.org/gradle/02303A" alt="Gradle logo" width="24" height="24"> | Gradle | `gradle` | `.gradle`, `.gradle.kts` | `9.5.0` | `code-languages/gradle` |
370
379
  | <img src="https://upload.wikimedia.org/wikipedia/commons/1/17/GraphQL_Logo.svg" alt="GraphQL logo" width="24" height="24"> | GraphQL | `graphql` | `.graphql`, `.gql`, `.graphqls` | `September 2025` | `code-languages/graphql` |
371
380
  | <img src="https://upload.wikimedia.org/wikipedia/commons/3/36/Groovy-logo.svg" alt="Groovy logo" width="24" height="24"> | Groovy | `groovy` | `.groovy`, `.gvy`, `.gy`, `.gsh` | `5.0.5` | `code-languages/groovy` |
372
381
  | <img src="https://www.w3.org/html/logo/downloads/HTML5_Badge.svg" alt="HTML logo" width="24" height="24"> | HTML | `html` | `.html`, `.htm` | `Living Standard` | `code-languages/html` |
package/dist/api.cjs CHANGED
@@ -199,6 +199,43 @@ var init_bash = __esm({
199
199
  }
200
200
  });
201
201
 
202
+ // src/languages/batch.ts
203
+ var batch_exports = {};
204
+ __export(batch_exports, {
205
+ batch: () => batch
206
+ });
207
+ var batch;
208
+ var init_batch = __esm({
209
+ "src/languages/batch.ts"() {
210
+ batch = {
211
+ slug: "batch",
212
+ publishedDate: "1981-08-12",
213
+ extensions: [".bat", ".cmd"],
214
+ author: "Microsoft / IBM",
215
+ website: "https://learn.microsoft.com/windows-server/administration/windows-commands/windows-commands",
216
+ paradigms: ["command", "imperative", "scripting", "shell"],
217
+ tooling: {
218
+ runtimes: ["Command Prompt", "cmd.exe", "MS-DOS"],
219
+ ecosystems: ["Windows", "DOS", "Automation"]
220
+ },
221
+ version: "Windows Command Processor",
222
+ logo: "https://icons.iconarchive.com/icons/simpleicons-team/simple/128/windowsterminal-icon.png",
223
+ i18n: {
224
+ en: {
225
+ name: "Batch",
226
+ description: "A Windows command scripting format used to automate command-line tasks with cmd.exe.",
227
+ longDescription: "Batch files contain commands interpreted by the Windows Command Processor, including command invocation, variables, labels, conditionals, loops, argument handling, and process control.\n\nThey are used for Windows setup scripts, developer shortcuts, administrative automation, legacy DOS workflows, and simple command-line task orchestration on Windows systems."
228
+ },
229
+ es: {
230
+ name: "Batch",
231
+ description: "Un formato de scripting de comandos de Windows usado para automatizar tareas con cmd.exe.",
232
+ longDescription: "Los archivos Batch contienen comandos interpretados por Windows Command Processor, incluyendo invocacion de comandos, variables, etiquetas, condicionales, bucles, manejo de argumentos y control de procesos.\n\nSe usan para scripts de configuracion en Windows, accesos rapidos de desarrollo, automatizacion administrativa, flujos legacy de DOS y orquestacion simple de tareas de linea de comandos en sistemas Windows."
233
+ }
234
+ }
235
+ };
236
+ }
237
+ });
238
+
202
239
  // src/languages/c.ts
203
240
  var c_exports = {};
204
241
  __export(c_exports, {
@@ -609,6 +646,43 @@ var init_fsharp = __esm({
609
646
  }
610
647
  });
611
648
 
649
+ // src/languages/git.ts
650
+ var git_exports = {};
651
+ __export(git_exports, {
652
+ git: () => git
653
+ });
654
+ var git;
655
+ var init_git = __esm({
656
+ "src/languages/git.ts"() {
657
+ git = {
658
+ slug: "git",
659
+ publishedDate: "2005-04-07",
660
+ extensions: [".git", ".gitignore", ".gitattributes", ".gitmodules", ".gitkeep"],
661
+ author: "Linus Torvalds / Junio C Hamano",
662
+ website: "https://git-scm.com",
663
+ paradigms: ["configuration", "version-control", "ignore-patterns"],
664
+ tooling: {
665
+ runtimes: ["Git"],
666
+ ecosystems: ["Version Control", "DevOps", "Source Control"]
667
+ },
668
+ version: "2.54.0",
669
+ logo: "https://cdn.simpleicons.org/git/F05032",
670
+ i18n: {
671
+ en: {
672
+ name: "Git",
673
+ description: "Metadata and configuration files used by Git repositories and version-control workflows.",
674
+ longDescription: "Git-related files define repository ignore rules, attributes, submodules, local configuration, placeholders, and repository metadata used by Git tooling.\n\nThey are used in software projects to control which files are tracked, how paths are treated, how submodules are linked, and how repository-specific automation or conventions behave."
675
+ },
676
+ es: {
677
+ name: "Git",
678
+ description: "Archivos de metadata y configuracion usados por repositorios Git y flujos de control de versiones.",
679
+ longDescription: "Los archivos relacionados con Git definen reglas de ignorado, atributos, submodulos, configuracion local, placeholders y metadata de repositorio usada por herramientas Git.\n\nSe usan en proyectos de software para controlar que archivos se versionan, como se tratan las rutas, como se enlazan submodulos y como se comportan automatizaciones o convenciones especificas del repositorio."
680
+ }
681
+ }
682
+ };
683
+ }
684
+ });
685
+
612
686
  // src/languages/go.ts
613
687
  var go_exports = {};
614
688
  __export(go_exports, {
@@ -647,6 +721,44 @@ var init_go = __esm({
647
721
  }
648
722
  });
649
723
 
724
+ // src/languages/gradle.ts
725
+ var gradle_exports = {};
726
+ __export(gradle_exports, {
727
+ gradle: () => gradle
728
+ });
729
+ var gradle;
730
+ var init_gradle = __esm({
731
+ "src/languages/gradle.ts"() {
732
+ gradle = {
733
+ slug: "gradle",
734
+ publishedDate: "2007-07-01",
735
+ extensions: [".gradle", ".gradle.kts"],
736
+ author: "Hans Dockter / Gradle Inc.",
737
+ website: "https://gradle.org",
738
+ paradigms: ["build-automation", "declarative", "imperative", "configuration"],
739
+ tooling: {
740
+ runtimes: ["JVM", "Gradle"],
741
+ packageManagers: ["Gradle"],
742
+ ecosystems: ["JVM", "Android", "Java", "Kotlin", "Groovy"]
743
+ },
744
+ version: "9.5.0",
745
+ logo: "https://cdn.simpleicons.org/gradle/02303A",
746
+ i18n: {
747
+ en: {
748
+ name: "Gradle",
749
+ description: "A build automation DSL and tool used to define, configure, and run software builds.",
750
+ longDescription: "Gradle build scripts define projects, plugins, dependencies, repositories, tasks, test suites, publishing rules, and multi-project build logic using Groovy DSL or Kotlin DSL files.\n\nIt is widely used in Java, Kotlin, Android, JVM, and polyglot projects that need reproducible builds, dependency management, custom automation, and integration with CI/CD pipelines."
751
+ },
752
+ es: {
753
+ name: "Gradle",
754
+ description: "Un DSL y herramienta de automatizacion de builds usado para definir, configurar y ejecutar builds.",
755
+ longDescription: "Los scripts de build de Gradle definen proyectos, plugins, dependencias, repositorios, tareas, suites de prueba, reglas de publicacion y logica de builds multiproyecto usando archivos Groovy DSL o Kotlin DSL.\n\nSe usa ampliamente en proyectos Java, Kotlin, Android, JVM y poliglotas que necesitan builds reproducibles, gestion de dependencias, automatizacion personalizada e integracion con pipelines CI/CD."
756
+ }
757
+ }
758
+ };
759
+ }
760
+ });
761
+
650
762
  // src/languages/graphql.ts
651
763
  var graphql_exports = {};
652
764
  __export(graphql_exports, {
@@ -2059,6 +2171,7 @@ init_asp();
2059
2171
  init_assembly();
2060
2172
  init_astro();
2061
2173
  init_bash();
2174
+ init_batch();
2062
2175
  init_c();
2063
2176
  init_cmake();
2064
2177
  init_cobol();
@@ -2070,7 +2183,9 @@ init_cuda();
2070
2183
  init_dart();
2071
2184
  init_dockerfile();
2072
2185
  init_fsharp();
2186
+ init_git();
2073
2187
  init_go();
2188
+ init_gradle();
2074
2189
  init_graphql();
2075
2190
  init_groovy();
2076
2191
  init_html();
@@ -2115,6 +2230,7 @@ var languages = [
2115
2230
  astro,
2116
2231
  assembly,
2117
2232
  bash,
2233
+ batch,
2118
2234
  c,
2119
2235
  cmake,
2120
2236
  coffeescript,
@@ -2126,7 +2242,9 @@ var languages = [
2126
2242
  dart,
2127
2243
  dockerfile,
2128
2244
  fsharp,
2245
+ git,
2129
2246
  go,
2247
+ gradle,
2130
2248
  graphql,
2131
2249
  groovy,
2132
2250
  html,
@@ -2229,6 +2347,7 @@ var languageIndex = [
2229
2347
  slug: "bash",
2230
2348
  extensions: [".sh", ".bash", ".bashrc", ".bash_profile", ".bash_login", ".profile"]
2231
2349
  },
2350
+ { slug: "batch", extensions: [".bat", ".cmd"] },
2232
2351
  { slug: "c", extensions: [".c", ".h"] },
2233
2352
  { slug: "cmake", extensions: ["CMakeLists.txt", ".cmake"] },
2234
2353
  { slug: "coffeescript", extensions: [".coffee", ".litcoffee", ".cson"] },
@@ -2240,7 +2359,9 @@ var languageIndex = [
2240
2359
  { slug: "dart", extensions: [".dart"] },
2241
2360
  { slug: "dockerfile", extensions: ["Dockerfile", ".dockerfile"] },
2242
2361
  { slug: "fsharp", extensions: [".fs", ".fsi", ".fsx", ".fsscript"] },
2362
+ { slug: "git", extensions: [".git", ".gitignore", ".gitattributes", ".gitmodules", ".gitkeep"] },
2243
2363
  { slug: "go", extensions: [".go"] },
2364
+ { slug: "gradle", extensions: [".gradle", ".gradle.kts"] },
2244
2365
  { slug: "graphql", extensions: [".graphql", ".gql", ".graphqls"] },
2245
2366
  { slug: "groovy", extensions: [".groovy", ".gvy", ".gy", ".gsh"] },
2246
2367
  { slug: "html", extensions: [".html", ".htm"] },
@@ -2292,6 +2413,7 @@ var languageLoaders = {
2292
2413
  assembly: () => Promise.resolve().then(() => (init_assembly(), assembly_exports)).then((module) => module.assembly),
2293
2414
  astro: () => Promise.resolve().then(() => (init_astro(), astro_exports)).then((module) => module.astro),
2294
2415
  bash: () => Promise.resolve().then(() => (init_bash(), bash_exports)).then((module) => module.bash),
2416
+ batch: () => Promise.resolve().then(() => (init_batch(), batch_exports)).then((module) => module.batch),
2295
2417
  c: () => Promise.resolve().then(() => (init_c(), c_exports)).then((module) => module.c),
2296
2418
  cmake: () => Promise.resolve().then(() => (init_cmake(), cmake_exports)).then((module) => module.cmake),
2297
2419
  cobol: () => Promise.resolve().then(() => (init_cobol(), cobol_exports)).then((module) => module.cobol),
@@ -2303,7 +2425,9 @@ var languageLoaders = {
2303
2425
  dart: () => Promise.resolve().then(() => (init_dart(), dart_exports)).then((module) => module.dart),
2304
2426
  dockerfile: () => Promise.resolve().then(() => (init_dockerfile(), dockerfile_exports)).then((module) => module.dockerfile),
2305
2427
  fsharp: () => Promise.resolve().then(() => (init_fsharp(), fsharp_exports)).then((module) => module.fsharp),
2428
+ git: () => Promise.resolve().then(() => (init_git(), git_exports)).then((module) => module.git),
2306
2429
  go: () => Promise.resolve().then(() => (init_go(), go_exports)).then((module) => module.go),
2430
+ gradle: () => Promise.resolve().then(() => (init_gradle(), gradle_exports)).then((module) => module.gradle),
2307
2431
  graphql: () => Promise.resolve().then(() => (init_graphql(), graphql_exports)).then((module) => module.graphql),
2308
2432
  groovy: () => Promise.resolve().then(() => (init_groovy(), groovy_exports)).then((module) => module.groovy),
2309
2433
  html: () => Promise.resolve().then(() => (init_html(), html_exports)).then((module) => module.html),