code-languages 1.5.0 → 1.7.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 +31 -1
- package/dist/detect.cjs +178 -0
- package/dist/detect.cjs.map +1 -1
- package/dist/detect.js +178 -0
- package/dist/detect.js.map +1 -1
- package/dist/index.cjs +184 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +160 -0
- package/dist/index.d.ts +160 -0
- package/dist/index.js +179 -1
- package/dist/index.js.map +1 -1
- package/dist/languages/abap.cjs +33 -0
- package/dist/languages/abap.cjs.map +1 -0
- package/dist/languages/abap.d.cts +28 -0
- package/dist/languages/abap.d.ts +28 -0
- package/dist/languages/abap.js +31 -0
- package/dist/languages/abap.js.map +1 -0
- package/dist/languages/cmake.cjs +33 -0
- package/dist/languages/cmake.cjs.map +1 -0
- package/dist/languages/cmake.d.cts +28 -0
- package/dist/languages/cmake.d.ts +28 -0
- package/dist/languages/cmake.js +31 -0
- package/dist/languages/cmake.js.map +1 -0
- package/dist/languages/coffeescript.cjs +34 -0
- package/dist/languages/coffeescript.cjs.map +1 -0
- package/dist/languages/coffeescript.d.cts +29 -0
- package/dist/languages/coffeescript.d.ts +29 -0
- package/dist/languages/coffeescript.js +32 -0
- package/dist/languages/coffeescript.js.map +1 -0
- package/dist/languages/lua.cjs +34 -0
- package/dist/languages/lua.cjs.map +1 -0
- package/dist/languages/lua.d.cts +29 -0
- package/dist/languages/lua.d.ts +29 -0
- package/dist/languages/lua.js +32 -0
- package/dist/languages/lua.js.map +1 -0
- package/dist/languages/ruby.cjs +34 -0
- package/dist/languages/ruby.cjs.map +1 -0
- package/dist/languages/ruby.d.cts +29 -0
- package/dist/languages/ruby.d.ts +29 -0
- package/dist/languages/ruby.js +32 -0
- package/dist/languages/ruby.js.map +1 -0
- package/dist/languages/svelte.cjs +34 -0
- package/dist/languages/svelte.cjs.map +1 -0
- package/dist/languages/svelte.d.cts +29 -0
- package/dist/languages/svelte.d.ts +29 -0
- package/dist/languages/svelte.js +32 -0
- package/dist/languages/svelte.js.map +1 -0
- package/package.json +31 -1
package/dist/detect.js
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
// src/languages/abap.ts
|
|
2
|
+
var abap = {
|
|
3
|
+
slug: "abap",
|
|
4
|
+
publishedDate: "1983-01-01",
|
|
5
|
+
extensions: [".abap"],
|
|
6
|
+
author: "SAP SE",
|
|
7
|
+
website: "https://pages.community.sap.com/topics/abap",
|
|
8
|
+
paradigms: ["object-oriented", "procedural", "imperative", "event-driven", "database-oriented"],
|
|
9
|
+
tooling: {
|
|
10
|
+
runtimes: ["ABAP Platform", "SAP NetWeaver AS ABAP", "SAP BTP ABAP Environment"],
|
|
11
|
+
ecosystems: ["SAP S/4HANA", "SAP BTP", "Enterprise Applications"]
|
|
12
|
+
},
|
|
13
|
+
version: "ABAP Platform 2025 FPS01",
|
|
14
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/5/59/SAP_2011_logo.svg",
|
|
15
|
+
i18n: {
|
|
16
|
+
en: {
|
|
17
|
+
name: "ABAP",
|
|
18
|
+
description: "SAP's enterprise application programming language for business systems and extensions.",
|
|
19
|
+
longDescription: "ABAP is SAP's programming language for implementing business logic, reports, data models, services, enhancements, and extensions in ABAP-based SAP systems.\n\nIt is widely used across SAP S/4HANA, SAP BTP ABAP Environment, classic SAP ERP systems, custom enterprise applications, RAP services, CDS models, batch processing, and integration workflows."
|
|
20
|
+
},
|
|
21
|
+
es: {
|
|
22
|
+
name: "ABAP",
|
|
23
|
+
description: "El lenguaje empresarial de SAP para sistemas de negocio y extensiones.",
|
|
24
|
+
longDescription: "ABAP es el lenguaje de programacion de SAP para implementar logica de negocio, reportes, modelos de datos, servicios, mejoras y extensiones en sistemas SAP basados en ABAP.\n\nSe usa ampliamente en SAP S/4HANA, SAP BTP ABAP Environment, sistemas SAP ERP clasicos, aplicaciones empresariales personalizadas, servicios RAP, modelos CDS, procesamiento batch y flujos de integracion."
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
1
29
|
// src/languages/assembly.ts
|
|
2
30
|
var assembly = {
|
|
3
31
|
slug: "assembly",
|
|
@@ -114,6 +142,34 @@ var c = {
|
|
|
114
142
|
}
|
|
115
143
|
};
|
|
116
144
|
|
|
145
|
+
// src/languages/cmake.ts
|
|
146
|
+
var cmake = {
|
|
147
|
+
slug: "cmake",
|
|
148
|
+
publishedDate: "2000-01-01",
|
|
149
|
+
extensions: ["CMakeLists.txt", ".cmake"],
|
|
150
|
+
author: "Kitware",
|
|
151
|
+
website: "https://cmake.org",
|
|
152
|
+
paradigms: ["build-automation", "declarative", "imperative", "configuration"],
|
|
153
|
+
tooling: {
|
|
154
|
+
runtimes: ["CMake"],
|
|
155
|
+
ecosystems: ["C", "C++", "Fortran", "Cross-platform Builds", "Embedded Systems"]
|
|
156
|
+
},
|
|
157
|
+
version: "4.3.2",
|
|
158
|
+
logo: "https://cmake.org/wp-content/uploads/2023/08/CMake-Logo.svg",
|
|
159
|
+
i18n: {
|
|
160
|
+
en: {
|
|
161
|
+
name: "CMake",
|
|
162
|
+
description: "A cross-platform build system language used to configure, generate, and manage builds.",
|
|
163
|
+
longDescription: "CMake files describe projects, targets, dependencies, compiler options, install rules, tests, and platform-specific build behavior using a command-based scripting language.\n\nThey are widely used to generate native build files for tools such as Ninja, Make, Visual Studio, and Xcode, especially in C, C++, Fortran, embedded, scientific, and cross-platform software projects."
|
|
164
|
+
},
|
|
165
|
+
es: {
|
|
166
|
+
name: "CMake",
|
|
167
|
+
description: "Un lenguaje de build multiplataforma usado para configurar, generar y gestionar builds.",
|
|
168
|
+
longDescription: "Los archivos CMake describen proyectos, targets, dependencias, opciones de compilador, reglas de instalacion, tests y comportamiento de build por plataforma usando un lenguaje de scripting basado en comandos.\n\nSe usan ampliamente para generar archivos de build nativos para herramientas como Ninja, Make, Visual Studio y Xcode, especialmente en proyectos C, C++, Fortran, embebidos, cientificos y multiplataforma."
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
|
|
117
173
|
// src/languages/cobol.ts
|
|
118
174
|
var cobol = {
|
|
119
175
|
slug: "cobol",
|
|
@@ -142,6 +198,35 @@ var cobol = {
|
|
|
142
198
|
}
|
|
143
199
|
};
|
|
144
200
|
|
|
201
|
+
// src/languages/coffeescript.ts
|
|
202
|
+
var coffeescript = {
|
|
203
|
+
slug: "coffeescript",
|
|
204
|
+
publishedDate: "2009-12-25",
|
|
205
|
+
extensions: [".coffee", ".litcoffee", ".cson"],
|
|
206
|
+
author: "Jeremy Ashkenas",
|
|
207
|
+
website: "https://coffeescript.org",
|
|
208
|
+
paradigms: ["functional", "imperative", "object-oriented", "scripting"],
|
|
209
|
+
tooling: {
|
|
210
|
+
runtimes: ["Browser", "Node.js"],
|
|
211
|
+
packageManagers: ["npm", "pnpm", "Yarn"],
|
|
212
|
+
ecosystems: ["JavaScript", "Web", "Node.js"]
|
|
213
|
+
},
|
|
214
|
+
version: "2.7.0",
|
|
215
|
+
logo: "https://cdn.simpleicons.org/coffeescript/2F2625",
|
|
216
|
+
i18n: {
|
|
217
|
+
en: {
|
|
218
|
+
name: "CoffeeScript",
|
|
219
|
+
description: "A small language that compiles to JavaScript with concise syntax inspired by Ruby and Python.",
|
|
220
|
+
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."
|
|
221
|
+
},
|
|
222
|
+
es: {
|
|
223
|
+
name: "CoffeeScript",
|
|
224
|
+
description: "Un lenguaje pequeno que compila a JavaScript con sintaxis concisa inspirada en Ruby y Python.",
|
|
225
|
+
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."
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
|
|
145
230
|
// src/languages/cpp.ts
|
|
146
231
|
var cpp = {
|
|
147
232
|
slug: "cpp",
|
|
@@ -532,6 +617,35 @@ var less = {
|
|
|
532
617
|
}
|
|
533
618
|
};
|
|
534
619
|
|
|
620
|
+
// src/languages/lua.ts
|
|
621
|
+
var lua = {
|
|
622
|
+
slug: "lua",
|
|
623
|
+
publishedDate: "1994-07-08",
|
|
624
|
+
extensions: [".lua", ".rockspec"],
|
|
625
|
+
author: "Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes",
|
|
626
|
+
website: "https://www.lua.org",
|
|
627
|
+
paradigms: ["procedural", "functional", "object-oriented", "scripting", "embeddable"],
|
|
628
|
+
tooling: {
|
|
629
|
+
runtimes: ["Lua", "LuaJIT"],
|
|
630
|
+
packageManagers: ["LuaRocks"],
|
|
631
|
+
ecosystems: ["Game Development", "Embedded Systems", "Scripting", "Configuration"]
|
|
632
|
+
},
|
|
633
|
+
version: "5.5.0",
|
|
634
|
+
logo: "https://www.lua.org/images/lua-logo.gif",
|
|
635
|
+
i18n: {
|
|
636
|
+
en: {
|
|
637
|
+
name: "Lua",
|
|
638
|
+
description: "A lightweight, embeddable scripting language designed for extension and portability.",
|
|
639
|
+
longDescription: "Lua is a small, fast scripting language with tables, first-class functions, closures, coroutines, metatables, dynamic typing, and a compact C API for embedding and extension.\n\nIt is widely used in game engines, embedded systems, application scripting, configuration files, plugins, network tools, Redis scripts, Neovim configuration, and products that need a portable extension language."
|
|
640
|
+
},
|
|
641
|
+
es: {
|
|
642
|
+
name: "Lua",
|
|
643
|
+
description: "Un lenguaje de scripting liviano y embebible disenado para extension y portabilidad.",
|
|
644
|
+
longDescription: "Lua es un lenguaje de scripting pequeno y rapido con tablas, funciones de primera clase, closures, corutinas, metatables, tipado dinamico y una API C compacta para embedding y extension.\n\nSe usa ampliamente en motores de videojuegos, sistemas embebidos, scripting de aplicaciones, archivos de configuracion, plugins, herramientas de red, scripts de Redis, configuracion de Neovim y productos que necesitan un lenguaje de extension portable."
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
|
|
535
649
|
// src/languages/makefile.ts
|
|
536
650
|
var makefile = {
|
|
537
651
|
slug: "makefile",
|
|
@@ -728,6 +842,35 @@ var python = {
|
|
|
728
842
|
}
|
|
729
843
|
};
|
|
730
844
|
|
|
845
|
+
// src/languages/ruby.ts
|
|
846
|
+
var ruby = {
|
|
847
|
+
slug: "ruby",
|
|
848
|
+
publishedDate: "1995-12-21",
|
|
849
|
+
extensions: [".rb", ".rbw", ".rake", ".gemspec", "Gemfile", "Rakefile", "config.ru"],
|
|
850
|
+
author: "Yukihiro Matsumoto",
|
|
851
|
+
website: "https://www.ruby-lang.org",
|
|
852
|
+
paradigms: ["object-oriented", "imperative", "functional", "reflective", "scripting"],
|
|
853
|
+
tooling: {
|
|
854
|
+
runtimes: ["Ruby MRI", "JRuby", "TruffleRuby"],
|
|
855
|
+
packageManagers: ["RubyGems", "Bundler"],
|
|
856
|
+
ecosystems: ["Web", "Rails", "DevOps", "Automation"]
|
|
857
|
+
},
|
|
858
|
+
version: "4.0.3",
|
|
859
|
+
logo: "https://www.ruby-lang.org/images/header-ruby-logo.png",
|
|
860
|
+
i18n: {
|
|
861
|
+
en: {
|
|
862
|
+
name: "Ruby",
|
|
863
|
+
description: "A dynamic, object-oriented scripting language focused on productivity and developer happiness.",
|
|
864
|
+
longDescription: "Ruby is a dynamic language with expressive syntax, open classes, blocks, mixins, metaprogramming, exceptions, modules, and a strong object-oriented model where nearly everything is an object.\n\nIt is widely used for web applications with Ruby on Rails, command-line tools, automation scripts, infrastructure tooling, static site generation, testing frameworks, and developer productivity workflows."
|
|
865
|
+
},
|
|
866
|
+
es: {
|
|
867
|
+
name: "Ruby",
|
|
868
|
+
description: "Un lenguaje dinamico y orientado a objetos enfocado en productividad y felicidad del desarrollador.",
|
|
869
|
+
longDescription: "Ruby es un lenguaje dinamico con sintaxis expresiva, clases abiertas, bloques, mixins, metaprogramacion, excepciones, modulos y un modelo orientado a objetos donde casi todo es un objeto.\n\nSe usa ampliamente para aplicaciones web con Ruby on Rails, herramientas de linea de comandos, scripts de automatizacion, tooling de infraestructura, generadores de sitios estaticos, frameworks de testing y flujos de productividad para desarrolladores."
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
|
|
731
874
|
// src/languages/rust.ts
|
|
732
875
|
var rust = {
|
|
733
876
|
slug: "rust",
|
|
@@ -810,6 +953,35 @@ var sql = {
|
|
|
810
953
|
}
|
|
811
954
|
};
|
|
812
955
|
|
|
956
|
+
// src/languages/svelte.ts
|
|
957
|
+
var svelte = {
|
|
958
|
+
slug: "svelte",
|
|
959
|
+
publishedDate: "2016-11-26",
|
|
960
|
+
extensions: [".svelte"],
|
|
961
|
+
author: "Rich Harris / Svelte contributors",
|
|
962
|
+
website: "https://svelte.dev",
|
|
963
|
+
paradigms: ["component-based", "declarative", "reactive", "compiled"],
|
|
964
|
+
tooling: {
|
|
965
|
+
runtimes: ["Browser", "Node.js"],
|
|
966
|
+
packageManagers: ["npm", "pnpm", "Yarn", "Bun"],
|
|
967
|
+
ecosystems: ["Web", "SvelteKit", "Vite"]
|
|
968
|
+
},
|
|
969
|
+
version: "5.55.5",
|
|
970
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/1/1b/Svelte_Logo.svg",
|
|
971
|
+
i18n: {
|
|
972
|
+
en: {
|
|
973
|
+
name: "Svelte",
|
|
974
|
+
description: "A compiled component framework for building reactive web user interfaces.",
|
|
975
|
+
longDescription: "Svelte components combine markup, styles, and script logic in single-file components that are compiled into efficient JavaScript for updating the DOM.\n\nIt is widely used for web applications, interactive interfaces, static sites, design systems, dashboards, and SvelteKit projects where developers want a reactive component model with minimal runtime overhead."
|
|
976
|
+
},
|
|
977
|
+
es: {
|
|
978
|
+
name: "Svelte",
|
|
979
|
+
description: "Un framework de componentes compilado para crear interfaces web reactivas.",
|
|
980
|
+
longDescription: "Los componentes Svelte combinan marcado, estilos y logica de script en componentes de archivo unico que se compilan a JavaScript eficiente para actualizar el DOM.\n\nSe usa ampliamente en aplicaciones web, interfaces interactivas, sitios estaticos, sistemas de diseno, dashboards y proyectos SvelteKit donde se busca un modelo de componentes reactivo con poca sobrecarga en runtime."
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
|
|
813
985
|
// src/languages/svg.ts
|
|
814
986
|
var svg = {
|
|
815
987
|
slug: "svg",
|
|
@@ -1062,10 +1234,13 @@ var zsh = {
|
|
|
1062
1234
|
|
|
1063
1235
|
// src/catalog.ts
|
|
1064
1236
|
var languages = [
|
|
1237
|
+
abap,
|
|
1065
1238
|
astro,
|
|
1066
1239
|
assembly,
|
|
1067
1240
|
bash,
|
|
1068
1241
|
c,
|
|
1242
|
+
cmake,
|
|
1243
|
+
coffeescript,
|
|
1069
1244
|
cobol,
|
|
1070
1245
|
cpp,
|
|
1071
1246
|
csharp,
|
|
@@ -1081,6 +1256,7 @@ var languages = [
|
|
|
1081
1256
|
json,
|
|
1082
1257
|
kotlin,
|
|
1083
1258
|
less,
|
|
1259
|
+
lua,
|
|
1084
1260
|
makefile,
|
|
1085
1261
|
markdown,
|
|
1086
1262
|
nginx,
|
|
@@ -1088,10 +1264,12 @@ var languages = [
|
|
|
1088
1264
|
php,
|
|
1089
1265
|
powershell,
|
|
1090
1266
|
python,
|
|
1267
|
+
ruby,
|
|
1091
1268
|
rust,
|
|
1092
1269
|
scss,
|
|
1093
1270
|
sql,
|
|
1094
1271
|
svg,
|
|
1272
|
+
svelte,
|
|
1095
1273
|
swift,
|
|
1096
1274
|
typescript,
|
|
1097
1275
|
visualBasic,
|