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/index.cjs
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
// src/languages/abap.ts
|
|
4
|
+
var abap = {
|
|
5
|
+
slug: "abap",
|
|
6
|
+
publishedDate: "1983-01-01",
|
|
7
|
+
extensions: [".abap"],
|
|
8
|
+
author: "SAP SE",
|
|
9
|
+
website: "https://pages.community.sap.com/topics/abap",
|
|
10
|
+
paradigms: ["object-oriented", "procedural", "imperative", "event-driven", "database-oriented"],
|
|
11
|
+
tooling: {
|
|
12
|
+
runtimes: ["ABAP Platform", "SAP NetWeaver AS ABAP", "SAP BTP ABAP Environment"],
|
|
13
|
+
ecosystems: ["SAP S/4HANA", "SAP BTP", "Enterprise Applications"]
|
|
14
|
+
},
|
|
15
|
+
version: "ABAP Platform 2025 FPS01",
|
|
16
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/5/59/SAP_2011_logo.svg",
|
|
17
|
+
i18n: {
|
|
18
|
+
en: {
|
|
19
|
+
name: "ABAP",
|
|
20
|
+
description: "SAP's enterprise application programming language for business systems and extensions.",
|
|
21
|
+
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."
|
|
22
|
+
},
|
|
23
|
+
es: {
|
|
24
|
+
name: "ABAP",
|
|
25
|
+
description: "El lenguaje empresarial de SAP para sistemas de negocio y extensiones.",
|
|
26
|
+
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."
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
3
31
|
// src/languages/assembly.ts
|
|
4
32
|
var assembly = {
|
|
5
33
|
slug: "assembly",
|
|
@@ -116,6 +144,34 @@ var c = {
|
|
|
116
144
|
}
|
|
117
145
|
};
|
|
118
146
|
|
|
147
|
+
// src/languages/cmake.ts
|
|
148
|
+
var cmake = {
|
|
149
|
+
slug: "cmake",
|
|
150
|
+
publishedDate: "2000-01-01",
|
|
151
|
+
extensions: ["CMakeLists.txt", ".cmake"],
|
|
152
|
+
author: "Kitware",
|
|
153
|
+
website: "https://cmake.org",
|
|
154
|
+
paradigms: ["build-automation", "declarative", "imperative", "configuration"],
|
|
155
|
+
tooling: {
|
|
156
|
+
runtimes: ["CMake"],
|
|
157
|
+
ecosystems: ["C", "C++", "Fortran", "Cross-platform Builds", "Embedded Systems"]
|
|
158
|
+
},
|
|
159
|
+
version: "4.3.2",
|
|
160
|
+
logo: "https://cmake.org/wp-content/uploads/2023/08/CMake-Logo.svg",
|
|
161
|
+
i18n: {
|
|
162
|
+
en: {
|
|
163
|
+
name: "CMake",
|
|
164
|
+
description: "A cross-platform build system language used to configure, generate, and manage builds.",
|
|
165
|
+
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."
|
|
166
|
+
},
|
|
167
|
+
es: {
|
|
168
|
+
name: "CMake",
|
|
169
|
+
description: "Un lenguaje de build multiplataforma usado para configurar, generar y gestionar builds.",
|
|
170
|
+
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."
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
119
175
|
// src/languages/cobol.ts
|
|
120
176
|
var cobol = {
|
|
121
177
|
slug: "cobol",
|
|
@@ -144,6 +200,35 @@ var cobol = {
|
|
|
144
200
|
}
|
|
145
201
|
};
|
|
146
202
|
|
|
203
|
+
// src/languages/coffeescript.ts
|
|
204
|
+
var coffeescript = {
|
|
205
|
+
slug: "coffeescript",
|
|
206
|
+
publishedDate: "2009-12-25",
|
|
207
|
+
extensions: [".coffee", ".litcoffee", ".cson"],
|
|
208
|
+
author: "Jeremy Ashkenas",
|
|
209
|
+
website: "https://coffeescript.org",
|
|
210
|
+
paradigms: ["functional", "imperative", "object-oriented", "scripting"],
|
|
211
|
+
tooling: {
|
|
212
|
+
runtimes: ["Browser", "Node.js"],
|
|
213
|
+
packageManagers: ["npm", "pnpm", "Yarn"],
|
|
214
|
+
ecosystems: ["JavaScript", "Web", "Node.js"]
|
|
215
|
+
},
|
|
216
|
+
version: "2.7.0",
|
|
217
|
+
logo: "https://cdn.simpleicons.org/coffeescript/2F2625",
|
|
218
|
+
i18n: {
|
|
219
|
+
en: {
|
|
220
|
+
name: "CoffeeScript",
|
|
221
|
+
description: "A small language that compiles to JavaScript with concise syntax inspired by Ruby and Python.",
|
|
222
|
+
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."
|
|
223
|
+
},
|
|
224
|
+
es: {
|
|
225
|
+
name: "CoffeeScript",
|
|
226
|
+
description: "Un lenguaje pequeno que compila a JavaScript con sintaxis concisa inspirada en Ruby y Python.",
|
|
227
|
+
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."
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
|
|
147
232
|
// src/languages/cpp.ts
|
|
148
233
|
var cpp = {
|
|
149
234
|
slug: "cpp",
|
|
@@ -534,6 +619,35 @@ var less = {
|
|
|
534
619
|
}
|
|
535
620
|
};
|
|
536
621
|
|
|
622
|
+
// src/languages/lua.ts
|
|
623
|
+
var lua = {
|
|
624
|
+
slug: "lua",
|
|
625
|
+
publishedDate: "1994-07-08",
|
|
626
|
+
extensions: [".lua", ".rockspec"],
|
|
627
|
+
author: "Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes",
|
|
628
|
+
website: "https://www.lua.org",
|
|
629
|
+
paradigms: ["procedural", "functional", "object-oriented", "scripting", "embeddable"],
|
|
630
|
+
tooling: {
|
|
631
|
+
runtimes: ["Lua", "LuaJIT"],
|
|
632
|
+
packageManagers: ["LuaRocks"],
|
|
633
|
+
ecosystems: ["Game Development", "Embedded Systems", "Scripting", "Configuration"]
|
|
634
|
+
},
|
|
635
|
+
version: "5.5.0",
|
|
636
|
+
logo: "https://www.lua.org/images/lua-logo.gif",
|
|
637
|
+
i18n: {
|
|
638
|
+
en: {
|
|
639
|
+
name: "Lua",
|
|
640
|
+
description: "A lightweight, embeddable scripting language designed for extension and portability.",
|
|
641
|
+
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."
|
|
642
|
+
},
|
|
643
|
+
es: {
|
|
644
|
+
name: "Lua",
|
|
645
|
+
description: "Un lenguaje de scripting liviano y embebible disenado para extension y portabilidad.",
|
|
646
|
+
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."
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
|
|
537
651
|
// src/languages/makefile.ts
|
|
538
652
|
var makefile = {
|
|
539
653
|
slug: "makefile",
|
|
@@ -730,6 +844,35 @@ var python = {
|
|
|
730
844
|
}
|
|
731
845
|
};
|
|
732
846
|
|
|
847
|
+
// src/languages/ruby.ts
|
|
848
|
+
var ruby = {
|
|
849
|
+
slug: "ruby",
|
|
850
|
+
publishedDate: "1995-12-21",
|
|
851
|
+
extensions: [".rb", ".rbw", ".rake", ".gemspec", "Gemfile", "Rakefile", "config.ru"],
|
|
852
|
+
author: "Yukihiro Matsumoto",
|
|
853
|
+
website: "https://www.ruby-lang.org",
|
|
854
|
+
paradigms: ["object-oriented", "imperative", "functional", "reflective", "scripting"],
|
|
855
|
+
tooling: {
|
|
856
|
+
runtimes: ["Ruby MRI", "JRuby", "TruffleRuby"],
|
|
857
|
+
packageManagers: ["RubyGems", "Bundler"],
|
|
858
|
+
ecosystems: ["Web", "Rails", "DevOps", "Automation"]
|
|
859
|
+
},
|
|
860
|
+
version: "4.0.3",
|
|
861
|
+
logo: "https://www.ruby-lang.org/images/header-ruby-logo.png",
|
|
862
|
+
i18n: {
|
|
863
|
+
en: {
|
|
864
|
+
name: "Ruby",
|
|
865
|
+
description: "A dynamic, object-oriented scripting language focused on productivity and developer happiness.",
|
|
866
|
+
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."
|
|
867
|
+
},
|
|
868
|
+
es: {
|
|
869
|
+
name: "Ruby",
|
|
870
|
+
description: "Un lenguaje dinamico y orientado a objetos enfocado en productividad y felicidad del desarrollador.",
|
|
871
|
+
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."
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
|
|
733
876
|
// src/languages/rust.ts
|
|
734
877
|
var rust = {
|
|
735
878
|
slug: "rust",
|
|
@@ -812,6 +955,35 @@ var sql = {
|
|
|
812
955
|
}
|
|
813
956
|
};
|
|
814
957
|
|
|
958
|
+
// src/languages/svelte.ts
|
|
959
|
+
var svelte = {
|
|
960
|
+
slug: "svelte",
|
|
961
|
+
publishedDate: "2016-11-26",
|
|
962
|
+
extensions: [".svelte"],
|
|
963
|
+
author: "Rich Harris / Svelte contributors",
|
|
964
|
+
website: "https://svelte.dev",
|
|
965
|
+
paradigms: ["component-based", "declarative", "reactive", "compiled"],
|
|
966
|
+
tooling: {
|
|
967
|
+
runtimes: ["Browser", "Node.js"],
|
|
968
|
+
packageManagers: ["npm", "pnpm", "Yarn", "Bun"],
|
|
969
|
+
ecosystems: ["Web", "SvelteKit", "Vite"]
|
|
970
|
+
},
|
|
971
|
+
version: "5.55.5",
|
|
972
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/1/1b/Svelte_Logo.svg",
|
|
973
|
+
i18n: {
|
|
974
|
+
en: {
|
|
975
|
+
name: "Svelte",
|
|
976
|
+
description: "A compiled component framework for building reactive web user interfaces.",
|
|
977
|
+
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."
|
|
978
|
+
},
|
|
979
|
+
es: {
|
|
980
|
+
name: "Svelte",
|
|
981
|
+
description: "Un framework de componentes compilado para crear interfaces web reactivas.",
|
|
982
|
+
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."
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
};
|
|
986
|
+
|
|
815
987
|
// src/languages/svg.ts
|
|
816
988
|
var svg = {
|
|
817
989
|
slug: "svg",
|
|
@@ -1064,10 +1236,13 @@ var zsh = {
|
|
|
1064
1236
|
|
|
1065
1237
|
// src/catalog.ts
|
|
1066
1238
|
var languages = [
|
|
1239
|
+
abap,
|
|
1067
1240
|
astro,
|
|
1068
1241
|
assembly,
|
|
1069
1242
|
bash,
|
|
1070
1243
|
c,
|
|
1244
|
+
cmake,
|
|
1245
|
+
coffeescript,
|
|
1071
1246
|
cobol,
|
|
1072
1247
|
cpp,
|
|
1073
1248
|
csharp,
|
|
@@ -1083,6 +1258,7 @@ var languages = [
|
|
|
1083
1258
|
json,
|
|
1084
1259
|
kotlin,
|
|
1085
1260
|
less,
|
|
1261
|
+
lua,
|
|
1086
1262
|
makefile,
|
|
1087
1263
|
markdown,
|
|
1088
1264
|
nginx,
|
|
@@ -1090,10 +1266,12 @@ var languages = [
|
|
|
1090
1266
|
php,
|
|
1091
1267
|
powershell,
|
|
1092
1268
|
python,
|
|
1269
|
+
ruby,
|
|
1093
1270
|
rust,
|
|
1094
1271
|
scss,
|
|
1095
1272
|
sql,
|
|
1096
1273
|
svg,
|
|
1274
|
+
svelte,
|
|
1097
1275
|
swift,
|
|
1098
1276
|
typescript,
|
|
1099
1277
|
visualBasic,
|
|
@@ -1151,11 +1329,14 @@ var resolveLocale = (translations, locale) => {
|
|
|
1151
1329
|
return "en";
|
|
1152
1330
|
};
|
|
1153
1331
|
|
|
1332
|
+
exports.abap = abap;
|
|
1154
1333
|
exports.assembly = assembly;
|
|
1155
1334
|
exports.astro = astro;
|
|
1156
1335
|
exports.bash = bash;
|
|
1157
1336
|
exports.c = c;
|
|
1337
|
+
exports.cmake = cmake;
|
|
1158
1338
|
exports.cobol = cobol;
|
|
1339
|
+
exports.coffeescript = coffeescript;
|
|
1159
1340
|
exports.cpp = cpp;
|
|
1160
1341
|
exports.csharp = csharp;
|
|
1161
1342
|
exports.css = css;
|
|
@@ -1174,6 +1355,7 @@ exports.kotlin = kotlin;
|
|
|
1174
1355
|
exports.languages = languages;
|
|
1175
1356
|
exports.less = less;
|
|
1176
1357
|
exports.localizeLanguage = localizeLanguage;
|
|
1358
|
+
exports.lua = lua;
|
|
1177
1359
|
exports.makefile = makefile;
|
|
1178
1360
|
exports.markdown = markdown;
|
|
1179
1361
|
exports.nginx = nginx;
|
|
@@ -1181,9 +1363,11 @@ exports.objectiveC = objectiveC;
|
|
|
1181
1363
|
exports.php = php;
|
|
1182
1364
|
exports.powershell = powershell;
|
|
1183
1365
|
exports.python = python;
|
|
1366
|
+
exports.ruby = ruby;
|
|
1184
1367
|
exports.rust = rust;
|
|
1185
1368
|
exports.scss = scss;
|
|
1186
1369
|
exports.sql = sql;
|
|
1370
|
+
exports.svelte = svelte;
|
|
1187
1371
|
exports.svg = svg;
|
|
1188
1372
|
exports.swift = swift;
|
|
1189
1373
|
exports.typescript = typescript;
|