code-languages 1.7.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 +87 -2
- package/dist/api.cjs +2567 -0
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.cts +1596 -0
- package/dist/api.d.ts +1596 -0
- package/dist/api.js +2565 -0
- package/dist/api.js.map +1 -0
- package/dist/detect.cjs +430 -12
- package/dist/detect.cjs.map +1 -1
- package/dist/detect.js +430 -12
- package/dist/detect.js.map +1 -1
- package/dist/index.cjs +2452 -1202
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +372 -0
- package/dist/index.d.ts +372 -0
- package/dist/index.js +2408 -1115
- package/dist/index.js.map +1 -1
- package/dist/languages/asp.cjs +34 -0
- package/dist/languages/asp.cjs.map +1 -0
- package/dist/languages/asp.d.cts +29 -0
- package/dist/languages/asp.d.ts +29 -0
- package/dist/languages/asp.js +32 -0
- package/dist/languages/asp.js.map +1 -0
- package/dist/languages/batch.cjs +33 -0
- package/dist/languages/batch.cjs.map +1 -0
- package/dist/languages/batch.d.cts +28 -0
- package/dist/languages/batch.d.ts +28 -0
- package/dist/languages/batch.js +31 -0
- package/dist/languages/batch.js.map +1 -0
- package/dist/languages/cuda.cjs +34 -0
- package/dist/languages/cuda.cjs.map +1 -0
- package/dist/languages/cuda.d.cts +29 -0
- package/dist/languages/cuda.d.ts +29 -0
- package/dist/languages/cuda.js +32 -0
- package/dist/languages/cuda.js.map +1 -0
- package/dist/languages/fsharp.cjs +34 -0
- package/dist/languages/fsharp.cjs.map +1 -0
- package/dist/languages/fsharp.d.cts +29 -0
- package/dist/languages/fsharp.d.ts +29 -0
- package/dist/languages/fsharp.js +32 -0
- package/dist/languages/fsharp.js.map +1 -0
- package/dist/languages/git.cjs +33 -0
- package/dist/languages/git.cjs.map +1 -0
- package/dist/languages/git.d.cts +28 -0
- package/dist/languages/git.d.ts +28 -0
- package/dist/languages/git.js +31 -0
- package/dist/languages/git.js.map +1 -0
- package/dist/languages/gradle.cjs +34 -0
- package/dist/languages/gradle.cjs.map +1 -0
- package/dist/languages/gradle.d.cts +29 -0
- package/dist/languages/gradle.d.ts +29 -0
- package/dist/languages/gradle.js +32 -0
- package/dist/languages/gradle.js.map +1 -0
- package/dist/languages/julia.cjs +34 -0
- package/dist/languages/julia.cjs.map +1 -0
- package/dist/languages/julia.d.cts +29 -0
- package/dist/languages/julia.d.ts +29 -0
- package/dist/languages/julia.js +32 -0
- package/dist/languages/julia.js.map +1 -0
- package/dist/languages/matlab.cjs +34 -0
- package/dist/languages/matlab.cjs.map +1 -0
- package/dist/languages/matlab.d.cts +29 -0
- package/dist/languages/matlab.d.ts +29 -0
- package/dist/languages/matlab.js +32 -0
- package/dist/languages/matlab.js.map +1 -0
- package/dist/languages/pascal.cjs +34 -0
- package/dist/languages/pascal.cjs.map +1 -0
- package/dist/languages/pascal.d.cts +29 -0
- package/dist/languages/pascal.d.ts +29 -0
- package/dist/languages/pascal.js +32 -0
- package/dist/languages/pascal.js.map +1 -0
- package/dist/languages/pug.cjs +34 -0
- package/dist/languages/pug.cjs.map +1 -0
- package/dist/languages/pug.d.cts +29 -0
- package/dist/languages/pug.d.ts +29 -0
- package/dist/languages/pug.js +32 -0
- package/dist/languages/pug.js.map +1 -0
- package/dist/languages/r.cjs +34 -0
- package/dist/languages/r.cjs.map +1 -0
- package/dist/languages/r.d.cts +29 -0
- package/dist/languages/r.d.ts +29 -0
- package/dist/languages/r.js +32 -0
- package/dist/languages/r.js.map +1 -0
- package/dist/languages/scala.cjs +34 -0
- package/dist/languages/scala.cjs.map +1 -0
- package/dist/languages/scala.d.cts +29 -0
- package/dist/languages/scala.d.ts +29 -0
- package/dist/languages/scala.js +32 -0
- package/dist/languages/scala.js.map +1 -0
- package/dist/languages/toml.cjs +29 -0
- package/dist/languages/toml.cjs.map +1 -0
- package/dist/languages/toml.d.cts +24 -0
- package/dist/languages/toml.d.ts +24 -0
- package/dist/languages/toml.js +27 -0
- package/dist/languages/toml.js.map +1 -0
- package/dist/languages/zig.cjs +34 -0
- package/dist/languages/zig.cjs.map +1 -0
- package/dist/languages/zig.d.cts +29 -0
- package/dist/languages/zig.d.ts +29 -0
- package/dist/languages/zig.js +32 -0
- package/dist/languages/zig.js.map +1 -0
- package/package.json +76 -1
package/dist/detect.js
CHANGED
|
@@ -26,6 +26,35 @@ var abap = {
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
// src/languages/asp.ts
|
|
30
|
+
var asp = {
|
|
31
|
+
slug: "asp",
|
|
32
|
+
publishedDate: "1996-12-01",
|
|
33
|
+
extensions: [".asp", ".aspx", ".ascx", ".ashx", ".asmx", ".master"],
|
|
34
|
+
author: "Microsoft",
|
|
35
|
+
website: "https://learn.microsoft.com/en-us/aspnet/web-forms/",
|
|
36
|
+
paradigms: ["server-side", "templating", "object-oriented", "event-driven"],
|
|
37
|
+
tooling: {
|
|
38
|
+
runtimes: ["IIS", ".NET Framework"],
|
|
39
|
+
packageManagers: ["NuGet"],
|
|
40
|
+
ecosystems: ["Windows", ".NET", "Web"]
|
|
41
|
+
},
|
|
42
|
+
version: "4.8.1",
|
|
43
|
+
logo: "https://cdn.simpleicons.org/dotnet/512BD4",
|
|
44
|
+
i18n: {
|
|
45
|
+
en: {
|
|
46
|
+
name: "ASP/ASPX",
|
|
47
|
+
description: "Microsoft server-side web templates and pages for Classic ASP and ASP.NET Web Forms.",
|
|
48
|
+
longDescription: "ASP and ASPX files represent Microsoft server-side web page technologies. Classic ASP uses `.asp` files with script blocks, while ASP.NET Web Forms uses `.aspx`, user controls, handlers, services, and master pages on top of the .NET Framework.\n\nThey are commonly found in legacy and long-lived Windows web applications hosted on IIS, often alongside C#, Visual Basic, HTML, CSS, JavaScript, and NuGet-based .NET Framework dependencies."
|
|
49
|
+
},
|
|
50
|
+
es: {
|
|
51
|
+
name: "ASP/ASPX",
|
|
52
|
+
description: "Plantillas y paginas web server-side de Microsoft para Classic ASP y ASP.NET Web Forms.",
|
|
53
|
+
longDescription: "Los archivos ASP y ASPX representan tecnologias de paginas web server-side de Microsoft. Classic ASP usa archivos `.asp` con bloques de script, mientras ASP.NET Web Forms usa `.aspx`, controles de usuario, handlers, servicios y paginas maestras sobre .NET Framework.\n\nAparecen comunmente en aplicaciones web Windows legacy o de larga vida alojadas en IIS, a menudo junto con C#, Visual Basic, HTML, CSS, JavaScript y dependencias .NET Framework basadas en NuGet."
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
29
58
|
// src/languages/assembly.ts
|
|
30
59
|
var assembly = {
|
|
31
60
|
slug: "assembly",
|
|
@@ -113,6 +142,34 @@ var bash = {
|
|
|
113
142
|
}
|
|
114
143
|
};
|
|
115
144
|
|
|
145
|
+
// src/languages/batch.ts
|
|
146
|
+
var batch = {
|
|
147
|
+
slug: "batch",
|
|
148
|
+
publishedDate: "1981-08-12",
|
|
149
|
+
extensions: [".bat", ".cmd"],
|
|
150
|
+
author: "Microsoft / IBM",
|
|
151
|
+
website: "https://learn.microsoft.com/windows-server/administration/windows-commands/windows-commands",
|
|
152
|
+
paradigms: ["command", "imperative", "scripting", "shell"],
|
|
153
|
+
tooling: {
|
|
154
|
+
runtimes: ["Command Prompt", "cmd.exe", "MS-DOS"],
|
|
155
|
+
ecosystems: ["Windows", "DOS", "Automation"]
|
|
156
|
+
},
|
|
157
|
+
version: "Windows Command Processor",
|
|
158
|
+
logo: "https://icons.iconarchive.com/icons/simpleicons-team/simple/128/windowsterminal-icon.png",
|
|
159
|
+
i18n: {
|
|
160
|
+
en: {
|
|
161
|
+
name: "Batch",
|
|
162
|
+
description: "A Windows command scripting format used to automate command-line tasks with cmd.exe.",
|
|
163
|
+
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."
|
|
164
|
+
},
|
|
165
|
+
es: {
|
|
166
|
+
name: "Batch",
|
|
167
|
+
description: "Un formato de scripting de comandos de Windows usado para automatizar tareas con cmd.exe.",
|
|
168
|
+
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."
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
|
|
116
173
|
// src/languages/c.ts
|
|
117
174
|
var c = {
|
|
118
175
|
slug: "c",
|
|
@@ -309,6 +366,35 @@ var css = {
|
|
|
309
366
|
}
|
|
310
367
|
};
|
|
311
368
|
|
|
369
|
+
// src/languages/cuda.ts
|
|
370
|
+
var cuda = {
|
|
371
|
+
slug: "cuda",
|
|
372
|
+
publishedDate: "2007-02-15",
|
|
373
|
+
extensions: [".cu", ".cuh"],
|
|
374
|
+
author: "NVIDIA",
|
|
375
|
+
website: "https://developer.nvidia.com/cuda-toolkit",
|
|
376
|
+
paradigms: ["parallel", "data-parallel", "systems", "heterogeneous-computing"],
|
|
377
|
+
tooling: {
|
|
378
|
+
runtimes: ["CUDA Runtime", "CUDA Driver API"],
|
|
379
|
+
packageManagers: ["CUDA Toolkit", "conda"],
|
|
380
|
+
ecosystems: ["GPU Computing", "HPC", "Machine Learning", "Scientific Computing"]
|
|
381
|
+
},
|
|
382
|
+
version: "13.2.1",
|
|
383
|
+
logo: "https://cdn.simpleicons.org/nvidia/76B900",
|
|
384
|
+
i18n: {
|
|
385
|
+
en: {
|
|
386
|
+
name: "CUDA",
|
|
387
|
+
description: "NVIDIA's GPU programming platform and C/C++ extensions for parallel computing.",
|
|
388
|
+
longDescription: "CUDA is NVIDIA's parallel computing platform and programming model for GPU-accelerated applications. CUDA C/C++ source files use extensions for kernels, device functions, memory spaces, grids, blocks, and threads that execute on NVIDIA GPUs.\n\nIt is used in machine learning, scientific computing, simulations, image processing, rendering, high-performance computing, and applications that need to offload massively parallel workloads to GPU hardware."
|
|
389
|
+
},
|
|
390
|
+
es: {
|
|
391
|
+
name: "CUDA",
|
|
392
|
+
description: "La plataforma GPU de NVIDIA y extensiones C/C++ para computacion paralela.",
|
|
393
|
+
longDescription: "CUDA es la plataforma de computacion paralela y modelo de programacion de NVIDIA para aplicaciones aceleradas por GPU. Los archivos CUDA C/C++ usan extensiones para kernels, funciones de dispositivo, espacios de memoria, grids, blocks y threads que se ejecutan en GPUs NVIDIA.\n\nSe usa en machine learning, computacion cientifica, simulaciones, procesamiento de imagenes, rendering, computacion de alto rendimiento y aplicaciones que necesitan descargar cargas masivamente paralelas al hardware GPU."
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
|
|
312
398
|
// src/languages/dart.ts
|
|
313
399
|
var dart = {
|
|
314
400
|
slug: "dart",
|
|
@@ -366,6 +452,63 @@ var dockerfile = {
|
|
|
366
452
|
}
|
|
367
453
|
};
|
|
368
454
|
|
|
455
|
+
// src/languages/fsharp.ts
|
|
456
|
+
var fsharp = {
|
|
457
|
+
slug: "fsharp",
|
|
458
|
+
publishedDate: "2005-05-01",
|
|
459
|
+
extensions: [".fs", ".fsi", ".fsx", ".fsscript"],
|
|
460
|
+
author: "Don Syme / Microsoft Research",
|
|
461
|
+
website: "https://dotnet.microsoft.com/en-us/languages/fsharp",
|
|
462
|
+
paradigms: ["functional", "object-oriented", "imperative", "scripting"],
|
|
463
|
+
tooling: {
|
|
464
|
+
runtimes: [".NET", "F# Interactive"],
|
|
465
|
+
packageManagers: ["NuGet"],
|
|
466
|
+
ecosystems: [".NET", "Data Science", "Web", "Cloud"]
|
|
467
|
+
},
|
|
468
|
+
version: "10",
|
|
469
|
+
logo: "https://cdn.simpleicons.org/fsharp/378BBA",
|
|
470
|
+
i18n: {
|
|
471
|
+
en: {
|
|
472
|
+
name: "F#",
|
|
473
|
+
description: "A succinct, functional-first .NET language for robust applications, scripts, and data workflows.",
|
|
474
|
+
longDescription: "F# is a functional-first programming language in the .NET ecosystem. It combines type inference, immutable data by default, pattern matching, discriminated unions, computation expressions, and interoperability with C# and other .NET languages.\n\nIt is used for backend services, data processing, scripting, domain modeling, financial systems, cloud applications, and teams that want concise code with strong static typing and access to the broader .NET platform."
|
|
475
|
+
},
|
|
476
|
+
es: {
|
|
477
|
+
name: "F#",
|
|
478
|
+
description: "Un lenguaje .NET conciso y funcional para aplicaciones robustas, scripts y flujos de datos.",
|
|
479
|
+
longDescription: "F# es un lenguaje de programacion funcional-first dentro del ecosistema .NET. Combina inferencia de tipos, datos inmutables por defecto, pattern matching, uniones discriminadas, computation expressions e interoperabilidad con C# y otros lenguajes .NET.\n\nSe usa en servicios backend, procesamiento de datos, scripting, modelado de dominios, sistemas financieros, aplicaciones cloud y equipos que quieren codigo conciso con tipado estatico fuerte y acceso a la plataforma .NET."
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
// src/languages/git.ts
|
|
485
|
+
var git = {
|
|
486
|
+
slug: "git",
|
|
487
|
+
publishedDate: "2005-04-07",
|
|
488
|
+
extensions: [".git", ".gitignore", ".gitattributes", ".gitmodules", ".gitkeep"],
|
|
489
|
+
author: "Linus Torvalds / Junio C Hamano",
|
|
490
|
+
website: "https://git-scm.com",
|
|
491
|
+
paradigms: ["configuration", "version-control", "ignore-patterns"],
|
|
492
|
+
tooling: {
|
|
493
|
+
runtimes: ["Git"],
|
|
494
|
+
ecosystems: ["Version Control", "DevOps", "Source Control"]
|
|
495
|
+
},
|
|
496
|
+
version: "2.54.0",
|
|
497
|
+
logo: "https://cdn.simpleicons.org/git/F05032",
|
|
498
|
+
i18n: {
|
|
499
|
+
en: {
|
|
500
|
+
name: "Git",
|
|
501
|
+
description: "Metadata and configuration files used by Git repositories and version-control workflows.",
|
|
502
|
+
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."
|
|
503
|
+
},
|
|
504
|
+
es: {
|
|
505
|
+
name: "Git",
|
|
506
|
+
description: "Archivos de metadata y configuracion usados por repositorios Git y flujos de control de versiones.",
|
|
507
|
+
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."
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
|
|
369
512
|
// src/languages/go.ts
|
|
370
513
|
var go = {
|
|
371
514
|
slug: "go",
|
|
@@ -395,6 +538,35 @@ var go = {
|
|
|
395
538
|
}
|
|
396
539
|
};
|
|
397
540
|
|
|
541
|
+
// src/languages/gradle.ts
|
|
542
|
+
var gradle = {
|
|
543
|
+
slug: "gradle",
|
|
544
|
+
publishedDate: "2007-07-01",
|
|
545
|
+
extensions: [".gradle", ".gradle.kts"],
|
|
546
|
+
author: "Hans Dockter / Gradle Inc.",
|
|
547
|
+
website: "https://gradle.org",
|
|
548
|
+
paradigms: ["build-automation", "declarative", "imperative", "configuration"],
|
|
549
|
+
tooling: {
|
|
550
|
+
runtimes: ["JVM", "Gradle"],
|
|
551
|
+
packageManagers: ["Gradle"],
|
|
552
|
+
ecosystems: ["JVM", "Android", "Java", "Kotlin", "Groovy"]
|
|
553
|
+
},
|
|
554
|
+
version: "9.5.0",
|
|
555
|
+
logo: "https://cdn.simpleicons.org/gradle/02303A",
|
|
556
|
+
i18n: {
|
|
557
|
+
en: {
|
|
558
|
+
name: "Gradle",
|
|
559
|
+
description: "A build automation DSL and tool used to define, configure, and run software builds.",
|
|
560
|
+
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."
|
|
561
|
+
},
|
|
562
|
+
es: {
|
|
563
|
+
name: "Gradle",
|
|
564
|
+
description: "Un DSL y herramienta de automatizacion de builds usado para definir, configurar y ejecutar builds.",
|
|
565
|
+
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."
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
|
|
398
570
|
// src/languages/graphql.ts
|
|
399
571
|
var graphql = {
|
|
400
572
|
slug: "graphql",
|
|
@@ -559,6 +731,35 @@ var json = {
|
|
|
559
731
|
}
|
|
560
732
|
};
|
|
561
733
|
|
|
734
|
+
// src/languages/julia.ts
|
|
735
|
+
var julia = {
|
|
736
|
+
slug: "julia",
|
|
737
|
+
publishedDate: "2012-02-14",
|
|
738
|
+
extensions: [".jl"],
|
|
739
|
+
author: "Jeff Bezanson, Stefan Karpinski, Viral B. Shah, Alan Edelman",
|
|
740
|
+
website: "https://julialang.org",
|
|
741
|
+
paradigms: ["multiple-dispatch", "functional", "imperative", "metaprogramming"],
|
|
742
|
+
tooling: {
|
|
743
|
+
runtimes: ["Julia"],
|
|
744
|
+
packageManagers: ["Pkg"],
|
|
745
|
+
ecosystems: ["Scientific Computing", "Data Science", "Machine Learning", "HPC"]
|
|
746
|
+
},
|
|
747
|
+
version: "1.12.6",
|
|
748
|
+
logo: "https://cdn.simpleicons.org/julia/9558B2",
|
|
749
|
+
i18n: {
|
|
750
|
+
en: {
|
|
751
|
+
name: "Julia",
|
|
752
|
+
description: "A high-performance language for technical computing, data science, and numerical work.",
|
|
753
|
+
longDescription: "Julia is a high-level, high-performance programming language designed for numerical and scientific computing. It combines dynamic interactivity with just-in-time compilation, multiple dispatch, metaprogramming, and a package ecosystem focused on technical work.\n\nIt is widely used for scientific computing, data analysis, machine learning, optimization, simulations, high-performance computing, and workflows where teams want expressive code that can run close to native speed."
|
|
754
|
+
},
|
|
755
|
+
es: {
|
|
756
|
+
name: "Julia",
|
|
757
|
+
description: "Un lenguaje de alto rendimiento para computacion tecnica, ciencia de datos y trabajo numerico.",
|
|
758
|
+
longDescription: "Julia es un lenguaje de programacion de alto nivel y alto rendimiento disenado para computacion numerica y cientifica. Combina interactividad dinamica con compilacion just-in-time, multiple dispatch, metaprogramacion y un ecosistema de paquetes enfocado en trabajo tecnico.\n\nSe usa ampliamente en computacion cientifica, analisis de datos, machine learning, optimizacion, simulaciones, computacion de alto rendimiento y flujos donde los equipos quieren codigo expresivo que pueda ejecutarse cerca de velocidad nativa."
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
|
|
562
763
|
// src/languages/kotlin.ts
|
|
563
764
|
var kotlin = {
|
|
564
765
|
slug: "kotlin",
|
|
@@ -698,6 +899,35 @@ var markdown = {
|
|
|
698
899
|
}
|
|
699
900
|
};
|
|
700
901
|
|
|
902
|
+
// src/languages/matlab.ts
|
|
903
|
+
var matlab = {
|
|
904
|
+
slug: "matlab",
|
|
905
|
+
publishedDate: "1984-01-01",
|
|
906
|
+
extensions: [".m", ".mlx"],
|
|
907
|
+
author: "MathWorks",
|
|
908
|
+
website: "https://www.mathworks.com/products/matlab.html",
|
|
909
|
+
paradigms: ["array-oriented", "imperative", "object-oriented", "procedural"],
|
|
910
|
+
tooling: {
|
|
911
|
+
runtimes: ["MATLAB"],
|
|
912
|
+
packageManagers: ["MATLAB Add-On Explorer"],
|
|
913
|
+
ecosystems: ["Scientific Computing", "Numerical Computing", "Engineering", "Simulink"]
|
|
914
|
+
},
|
|
915
|
+
version: "R2026a",
|
|
916
|
+
logo: "https://commons.wikimedia.org/wiki/Special:FilePath/Matlab_Logo.png",
|
|
917
|
+
i18n: {
|
|
918
|
+
en: {
|
|
919
|
+
name: "MATLAB",
|
|
920
|
+
description: "A matrix-oriented language and environment for engineering, science, data, and simulation.",
|
|
921
|
+
longDescription: "MATLAB is a programming language and numerical computing environment from MathWorks. It is centered on matrix and array operations, interactive analysis, visualization, algorithm development, and workflows for engineers and scientists.\n\nIt is commonly used for signal processing, control systems, robotics, data analysis, optimization, simulation, education, and model-based design alongside Simulink and MathWorks toolboxes."
|
|
922
|
+
},
|
|
923
|
+
es: {
|
|
924
|
+
name: "MATLAB",
|
|
925
|
+
description: "Un lenguaje y entorno orientado a matrices para ingenieria, ciencia, datos y simulacion.",
|
|
926
|
+
longDescription: "MATLAB es un lenguaje de programacion y entorno de computacion numerica de MathWorks. Esta centrado en operaciones con matrices y arreglos, analisis interactivo, visualizacion, desarrollo de algoritmos y flujos de trabajo para ingenieros y cientificos.\n\nSe usa comunmente en procesamiento de senales, sistemas de control, robotica, analisis de datos, optimizacion, simulacion, educacion y diseno basado en modelos junto con Simulink y las toolboxes de MathWorks."
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
};
|
|
930
|
+
|
|
701
931
|
// src/languages/nginx.ts
|
|
702
932
|
var nginx = {
|
|
703
933
|
slug: "nginx",
|
|
@@ -755,6 +985,35 @@ var objectiveC = {
|
|
|
755
985
|
}
|
|
756
986
|
};
|
|
757
987
|
|
|
988
|
+
// src/languages/pascal.ts
|
|
989
|
+
var pascal = {
|
|
990
|
+
slug: "pascal",
|
|
991
|
+
publishedDate: "1970-01-01",
|
|
992
|
+
extensions: [".pas", ".pp", ".inc", ".lpr", ".dpr", ".dfm"],
|
|
993
|
+
author: "Niklaus Wirth",
|
|
994
|
+
website: "https://www.freepascal.org",
|
|
995
|
+
paradigms: ["structured", "imperative", "procedural", "object-oriented"],
|
|
996
|
+
tooling: {
|
|
997
|
+
runtimes: ["Free Pascal", "Delphi Runtime"],
|
|
998
|
+
packageManagers: ["fppkg", "OPM"],
|
|
999
|
+
ecosystems: ["Desktop", "Education", "Embedded", "Cross-platform Native"]
|
|
1000
|
+
},
|
|
1001
|
+
version: "3.2.2",
|
|
1002
|
+
logo: "https://cdn.simpleicons.org/lazarus/000000",
|
|
1003
|
+
i18n: {
|
|
1004
|
+
en: {
|
|
1005
|
+
name: "Pascal",
|
|
1006
|
+
description: "A structured programming language and Object Pascal family used for native applications.",
|
|
1007
|
+
longDescription: "Pascal is a structured programming language created by Niklaus Wirth and later expanded through Object Pascal dialects such as Delphi and Free Pascal. It emphasizes readable syntax, clear program structure, strong typing, procedures, records, units, and native compilation.\n\nIt is used in education, desktop software, cross-platform native applications, embedded systems, legacy business tools, and Lazarus or Delphi projects that rely on Pascal and Object Pascal source files."
|
|
1008
|
+
},
|
|
1009
|
+
es: {
|
|
1010
|
+
name: "Pascal",
|
|
1011
|
+
description: "Un lenguaje estructurado y familia Object Pascal usado para aplicaciones nativas.",
|
|
1012
|
+
longDescription: "Pascal es un lenguaje de programacion estructurada creado por Niklaus Wirth y luego expandido mediante dialectos Object Pascal como Delphi y Free Pascal. Enfatiza sintaxis legible, estructura clara, tipado fuerte, procedimientos, records, units y compilacion nativa.\n\nSe usa en educacion, software de escritorio, aplicaciones nativas multiplataforma, sistemas embebidos, herramientas legacy de negocio y proyectos Lazarus o Delphi basados en archivos fuente Pascal y Object Pascal."
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
|
|
758
1017
|
// src/languages/php.ts
|
|
759
1018
|
var php = {
|
|
760
1019
|
slug: "php",
|
|
@@ -813,6 +1072,35 @@ var powershell = {
|
|
|
813
1072
|
}
|
|
814
1073
|
};
|
|
815
1074
|
|
|
1075
|
+
// src/languages/pug.ts
|
|
1076
|
+
var pug = {
|
|
1077
|
+
slug: "pug",
|
|
1078
|
+
publishedDate: "2010-06-01",
|
|
1079
|
+
extensions: [".pug", ".jade"],
|
|
1080
|
+
author: "TJ Holowaychuk / Pug contributors",
|
|
1081
|
+
website: "https://pugjs.org",
|
|
1082
|
+
paradigms: ["declarative", "templating", "markup"],
|
|
1083
|
+
tooling: {
|
|
1084
|
+
runtimes: ["Node.js", "Browser"],
|
|
1085
|
+
packageManagers: ["npm", "pnpm", "Yarn"],
|
|
1086
|
+
ecosystems: ["Web", "Node.js"]
|
|
1087
|
+
},
|
|
1088
|
+
version: "3.0.3",
|
|
1089
|
+
logo: "https://cdn.simpleicons.org/pug/A86454",
|
|
1090
|
+
i18n: {
|
|
1091
|
+
en: {
|
|
1092
|
+
name: "Pug",
|
|
1093
|
+
description: "A whitespace-sensitive template language for generating HTML in Node.js and browsers.",
|
|
1094
|
+
longDescription: "Pug is a high-performance template language for writing HTML with concise, indentation-based syntax. It was formerly known as Jade and is commonly used to generate HTML from reusable templates, layouts, includes, mixins, and JavaScript expressions.\n\nIt is used in Node.js web applications, static site workflows, component prototypes, email templates, and build pipelines where teams want compact templates that compile to HTML."
|
|
1095
|
+
},
|
|
1096
|
+
es: {
|
|
1097
|
+
name: "Pug",
|
|
1098
|
+
description: "Un lenguaje de plantillas sensible a espacios para generar HTML en Node.js y navegadores.",
|
|
1099
|
+
longDescription: "Pug es un lenguaje de plantillas de alto rendimiento para escribir HTML con una sintaxis concisa basada en indentacion. Antes se llamaba Jade y se usa comunmente para generar HTML desde plantillas reutilizables, layouts, includes, mixins y expresiones JavaScript.\n\nSe usa en aplicaciones web con Node.js, flujos de sitios estaticos, prototipos de componentes, plantillas de email y pipelines de build donde los equipos quieren plantillas compactas que compilan a HTML."
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
|
|
816
1104
|
// src/languages/python.ts
|
|
817
1105
|
var python = {
|
|
818
1106
|
slug: "python",
|
|
@@ -842,6 +1130,35 @@ var python = {
|
|
|
842
1130
|
}
|
|
843
1131
|
};
|
|
844
1132
|
|
|
1133
|
+
// src/languages/r.ts
|
|
1134
|
+
var r = {
|
|
1135
|
+
slug: "r",
|
|
1136
|
+
publishedDate: "1993-08-01",
|
|
1137
|
+
extensions: [".r", ".R", ".rmd", ".Rmd", ".qmd", ".Rprofile"],
|
|
1138
|
+
author: "Ross Ihaka, Robert Gentleman / R Core Team",
|
|
1139
|
+
website: "https://www.r-project.org",
|
|
1140
|
+
paradigms: ["functional", "array-oriented", "object-oriented", "statistical"],
|
|
1141
|
+
tooling: {
|
|
1142
|
+
runtimes: ["R"],
|
|
1143
|
+
packageManagers: ["CRAN", "renv", "pak"],
|
|
1144
|
+
ecosystems: ["Statistics", "Data Science", "Visualization", "Scientific Computing"]
|
|
1145
|
+
},
|
|
1146
|
+
version: "4.6.0",
|
|
1147
|
+
logo: "https://www.r-project.org/logo/Rlogo.svg",
|
|
1148
|
+
i18n: {
|
|
1149
|
+
en: {
|
|
1150
|
+
name: "R",
|
|
1151
|
+
description: "A statistical computing language and environment for data analysis, graphics, and research.",
|
|
1152
|
+
longDescription: "R is a programming language and software environment for statistical computing, data analysis, graphics, and reproducible research. It provides vectorized operations, data frames, formulas, packages, interactive workflows, and a large ecosystem centered around CRAN.\n\nIt is widely used in statistics, bioinformatics, data science, academic research, visualization, reporting, modeling, and analytical workflows that combine code, data, plots, and narrative documents."
|
|
1153
|
+
},
|
|
1154
|
+
es: {
|
|
1155
|
+
name: "R",
|
|
1156
|
+
description: "Un lenguaje y entorno de computacion estadistica para analisis de datos, graficos e investigacion.",
|
|
1157
|
+
longDescription: "R es un lenguaje de programacion y entorno de software para computacion estadistica, analisis de datos, graficos e investigacion reproducible. Ofrece operaciones vectorizadas, data frames, formulas, paquetes, flujos interactivos y un ecosistema amplio centrado en CRAN.\n\nSe usa ampliamente en estadistica, bioinformatica, ciencia de datos, investigacion academica, visualizacion, reportes, modelado y flujos analiticos que combinan codigo, datos, graficos y documentos narrativos."
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
|
|
845
1162
|
// src/languages/ruby.ts
|
|
846
1163
|
var ruby = {
|
|
847
1164
|
slug: "ruby",
|
|
@@ -900,6 +1217,35 @@ var rust = {
|
|
|
900
1217
|
}
|
|
901
1218
|
};
|
|
902
1219
|
|
|
1220
|
+
// src/languages/scala.ts
|
|
1221
|
+
var scala = {
|
|
1222
|
+
slug: "scala",
|
|
1223
|
+
publishedDate: "2004-01-20",
|
|
1224
|
+
extensions: [".scala", ".sc"],
|
|
1225
|
+
author: "Martin Odersky / EPFL",
|
|
1226
|
+
website: "https://www.scala-lang.org",
|
|
1227
|
+
paradigms: ["object-oriented", "functional", "statically-typed", "concurrent"],
|
|
1228
|
+
tooling: {
|
|
1229
|
+
runtimes: ["JVM", "Scala.js", "Scala Native"],
|
|
1230
|
+
packageManagers: ["sbt", "Maven", "Gradle", "Scala CLI"],
|
|
1231
|
+
ecosystems: ["JVM", "Web", "Data Engineering", "Distributed Systems"]
|
|
1232
|
+
},
|
|
1233
|
+
version: "3.7.4",
|
|
1234
|
+
logo: "https://cdn.simpleicons.org/scala/DC322F",
|
|
1235
|
+
i18n: {
|
|
1236
|
+
en: {
|
|
1237
|
+
name: "Scala",
|
|
1238
|
+
description: "A JVM language that blends object-oriented and functional programming with strong static typing.",
|
|
1239
|
+
longDescription: "Scala is a general-purpose programming language that combines object-oriented and functional programming on the JVM. It includes strong static typing, type inference, pattern matching, higher-order functions, traits, implicits or givens, and interoperability with Java libraries.\n\nIt is used for backend services, data engineering, distributed systems, streaming pipelines, domain modeling, and applications that benefit from expressive abstractions while staying connected to the JVM ecosystem."
|
|
1240
|
+
},
|
|
1241
|
+
es: {
|
|
1242
|
+
name: "Scala",
|
|
1243
|
+
description: "Un lenguaje JVM que combina programacion orientada a objetos y funcional con tipado estatico fuerte.",
|
|
1244
|
+
longDescription: "Scala es un lenguaje de programacion de proposito general que combina programacion orientada a objetos y funcional sobre la JVM. Incluye tipado estatico fuerte, inferencia de tipos, pattern matching, funciones de orden superior, traits, implicits o givens e interoperabilidad con bibliotecas Java.\n\nSe usa en servicios backend, ingenieria de datos, sistemas distribuidos, pipelines de streaming, modelado de dominios y aplicaciones que aprovechan abstracciones expresivas sin salir del ecosistema JVM."
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
|
|
903
1249
|
// src/languages/scss.ts
|
|
904
1250
|
var scss = {
|
|
905
1251
|
slug: "scss",
|
|
@@ -1039,6 +1385,30 @@ var swift = {
|
|
|
1039
1385
|
}
|
|
1040
1386
|
};
|
|
1041
1387
|
|
|
1388
|
+
// src/languages/toml.ts
|
|
1389
|
+
var toml = {
|
|
1390
|
+
slug: "toml",
|
|
1391
|
+
publishedDate: "2013-02-23",
|
|
1392
|
+
extensions: [".toml"],
|
|
1393
|
+
author: "Tom Preston-Werner / TOML contributors",
|
|
1394
|
+
website: "https://toml.io",
|
|
1395
|
+
paradigms: ["configuration", "declarative", "data-serialization"],
|
|
1396
|
+
version: "1.0.0",
|
|
1397
|
+
logo: "https://cdn.simpleicons.org/toml/9C4221",
|
|
1398
|
+
i18n: {
|
|
1399
|
+
en: {
|
|
1400
|
+
name: "TOML",
|
|
1401
|
+
description: "A minimal, human-readable configuration format that maps clearly to data structures.",
|
|
1402
|
+
longDescription: "TOML is a configuration file format designed to be easy for humans to read and write while mapping unambiguously to data structures such as hash tables. It supports key-value pairs, tables, arrays, strings, numbers, booleans, and date-time values.\n\nIt is used for project configuration, package manifests, build settings, tool configuration, infrastructure metadata, and applications that need concise structured data without the visual noise of more verbose formats."
|
|
1403
|
+
},
|
|
1404
|
+
es: {
|
|
1405
|
+
name: "TOML",
|
|
1406
|
+
description: "Un formato de configuracion minimo y legible que mapea claramente a estructuras de datos.",
|
|
1407
|
+
longDescription: "TOML es un formato de archivos de configuracion disenado para ser facil de leer y escribir por humanos mientras mapea sin ambiguedad a estructuras de datos como tablas hash. Soporta pares clave-valor, tablas, arreglos, strings, numeros, booleanos y valores de fecha y hora.\n\nSe usa en configuracion de proyectos, manifiestos de paquetes, ajustes de build, configuracion de herramientas, metadata de infraestructura y aplicaciones que necesitan datos estructurados concisos sin el ruido visual de formatos mas verbosos."
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1042
1412
|
// src/languages/typescript.ts
|
|
1043
1413
|
var typescript = {
|
|
1044
1414
|
slug: "typescript",
|
|
@@ -1203,6 +1573,35 @@ var yaml = {
|
|
|
1203
1573
|
}
|
|
1204
1574
|
};
|
|
1205
1575
|
|
|
1576
|
+
// src/languages/zig.ts
|
|
1577
|
+
var zig = {
|
|
1578
|
+
slug: "zig",
|
|
1579
|
+
publishedDate: "2016-02-08",
|
|
1580
|
+
extensions: [".zig", ".zon"],
|
|
1581
|
+
author: "Andrew Kelley / Zig Software Foundation",
|
|
1582
|
+
website: "https://ziglang.org",
|
|
1583
|
+
paradigms: ["imperative", "procedural", "systems", "compile-time metaprogramming"],
|
|
1584
|
+
tooling: {
|
|
1585
|
+
runtimes: ["Native"],
|
|
1586
|
+
packageManagers: ["Zig Package Manager"],
|
|
1587
|
+
ecosystems: ["Systems Programming", "Embedded", "Game Development", "Cross-compilation"]
|
|
1588
|
+
},
|
|
1589
|
+
version: "0.16.0",
|
|
1590
|
+
logo: "https://cdn.simpleicons.org/zig/F7A41D",
|
|
1591
|
+
i18n: {
|
|
1592
|
+
en: {
|
|
1593
|
+
name: "Zig",
|
|
1594
|
+
description: "A systems programming language and toolchain focused on robustness, control, and cross-compilation.",
|
|
1595
|
+
longDescription: "Zig is a general-purpose systems programming language and toolchain designed for explicit control, predictable performance, cross-compilation, and maintaining robust software. It provides manual memory management, comptime execution, error unions, integrated build tooling, and C interoperability.\n\nIt is used for systems software, embedded targets, command-line tools, game engines, low-level libraries, cross-platform native applications, and projects that need a compact language with strong compile-time capabilities."
|
|
1596
|
+
},
|
|
1597
|
+
es: {
|
|
1598
|
+
name: "Zig",
|
|
1599
|
+
description: "Un lenguaje y toolchain de sistemas enfocado en robustez, control y cross-compilation.",
|
|
1600
|
+
longDescription: "Zig es un lenguaje de programacion de sistemas y toolchain de proposito general disenado para control explicito, rendimiento predecible, cross-compilation y mantenimiento de software robusto. Ofrece gestion manual de memoria, ejecucion comptime, uniones de error, tooling de build integrado e interoperabilidad con C.\n\nSe usa en software de sistemas, targets embebidos, herramientas de linea de comandos, motores de juegos, bibliotecas de bajo nivel, aplicaciones nativas multiplataforma y proyectos que necesitan un lenguaje compacto con capacidades fuertes de compilacion en tiempo de build."
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1206
1605
|
// src/languages/zsh.ts
|
|
1207
1606
|
var zsh = {
|
|
1208
1607
|
slug: "zsh",
|
|
@@ -1235,9 +1634,11 @@ var zsh = {
|
|
|
1235
1634
|
// src/catalog.ts
|
|
1236
1635
|
var languages = [
|
|
1237
1636
|
abap,
|
|
1637
|
+
asp,
|
|
1238
1638
|
astro,
|
|
1239
1639
|
assembly,
|
|
1240
1640
|
bash,
|
|
1641
|
+
batch,
|
|
1241
1642
|
c,
|
|
1242
1643
|
cmake,
|
|
1243
1644
|
coffeescript,
|
|
@@ -1245,54 +1646,56 @@ var languages = [
|
|
|
1245
1646
|
cpp,
|
|
1246
1647
|
csharp,
|
|
1247
1648
|
css,
|
|
1649
|
+
cuda,
|
|
1248
1650
|
dart,
|
|
1249
1651
|
dockerfile,
|
|
1652
|
+
fsharp,
|
|
1653
|
+
git,
|
|
1250
1654
|
go,
|
|
1655
|
+
gradle,
|
|
1251
1656
|
graphql,
|
|
1252
1657
|
groovy,
|
|
1253
1658
|
html,
|
|
1254
1659
|
java,
|
|
1255
1660
|
javascript,
|
|
1256
1661
|
json,
|
|
1662
|
+
julia,
|
|
1257
1663
|
kotlin,
|
|
1258
1664
|
less,
|
|
1259
1665
|
lua,
|
|
1260
1666
|
makefile,
|
|
1667
|
+
matlab,
|
|
1261
1668
|
markdown,
|
|
1262
1669
|
nginx,
|
|
1263
1670
|
objectiveC,
|
|
1671
|
+
pascal,
|
|
1264
1672
|
php,
|
|
1265
1673
|
powershell,
|
|
1674
|
+
pug,
|
|
1266
1675
|
python,
|
|
1676
|
+
r,
|
|
1267
1677
|
ruby,
|
|
1268
1678
|
rust,
|
|
1679
|
+
scala,
|
|
1269
1680
|
scss,
|
|
1270
1681
|
sql,
|
|
1271
1682
|
svg,
|
|
1272
1683
|
svelte,
|
|
1273
1684
|
swift,
|
|
1685
|
+
toml,
|
|
1274
1686
|
typescript,
|
|
1275
1687
|
visualBasic,
|
|
1276
1688
|
vue,
|
|
1277
1689
|
webassembly,
|
|
1278
1690
|
xml,
|
|
1279
1691
|
yaml,
|
|
1692
|
+
zig,
|
|
1280
1693
|
zsh
|
|
1281
1694
|
];
|
|
1282
1695
|
|
|
1283
|
-
// src/
|
|
1696
|
+
// src/match.ts
|
|
1284
1697
|
var pathSegmentPattern = /[/\\]/;
|
|
1285
|
-
var
|
|
1286
|
-
const normalizedFilename = filename.trim();
|
|
1287
|
-
if (!normalizedFilename) {
|
|
1288
|
-
return [];
|
|
1289
|
-
}
|
|
1290
|
-
const basename = normalizedFilename.split(pathSegmentPattern).at(-1)?.toLowerCase() ?? "";
|
|
1291
|
-
return languages.filter(
|
|
1292
|
-
(language) => language.extensions.some((extension) => matchesExtension(basename, extension))
|
|
1293
|
-
);
|
|
1294
|
-
};
|
|
1295
|
-
var detectLanguage = (filename) => detectLanguages(filename).at(0);
|
|
1698
|
+
var getBasename = (filename) => filename.trim().split(pathSegmentPattern).at(-1)?.toLowerCase() ?? "";
|
|
1296
1699
|
var matchesExtension = (basename, extension) => {
|
|
1297
1700
|
const normalizedExtension = extension.toLowerCase();
|
|
1298
1701
|
if (normalizedExtension.startsWith(".")) {
|
|
@@ -1300,6 +1703,21 @@ var matchesExtension = (basename, extension) => {
|
|
|
1300
1703
|
}
|
|
1301
1704
|
return basename === normalizedExtension || basename.endsWith(`.${normalizedExtension}`);
|
|
1302
1705
|
};
|
|
1706
|
+
var detectMatchingEntries = (entries, filename) => {
|
|
1707
|
+
const basename = getBasename(filename);
|
|
1708
|
+
if (!basename) {
|
|
1709
|
+
return [];
|
|
1710
|
+
}
|
|
1711
|
+
return entries.filter(
|
|
1712
|
+
(entry) => entry.extensions.some((extension) => matchesExtension(basename, extension))
|
|
1713
|
+
);
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
// src/detect.ts
|
|
1717
|
+
var detectLanguages = (filename) => {
|
|
1718
|
+
return detectMatchingEntries(languages, filename);
|
|
1719
|
+
};
|
|
1720
|
+
var detectLanguage = (filename) => detectLanguages(filename).at(0);
|
|
1303
1721
|
|
|
1304
1722
|
export { detectLanguage, detectLanguages };
|
|
1305
1723
|
//# sourceMappingURL=detect.js.map
|