code-languages 1.13.0 → 1.14.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.
Files changed (42) hide show
  1. package/README.md +16 -0
  2. package/dist/api.cjs +168 -0
  3. package/dist/api.cjs.map +1 -1
  4. package/dist/api.d.cts +108 -0
  5. package/dist/api.d.ts +108 -0
  6. package/dist/api.js +168 -0
  7. package/dist/api.js.map +1 -1
  8. package/dist/detect.cjs +120 -0
  9. package/dist/detect.cjs.map +1 -1
  10. package/dist/detect.js +120 -0
  11. package/dist/detect.js.map +1 -1
  12. package/dist/index.cjs +172 -0
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +108 -0
  15. package/dist/index.d.ts +108 -0
  16. package/dist/index.js +173 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/languages/elixir.cjs +34 -0
  19. package/dist/languages/elixir.cjs.map +1 -0
  20. package/dist/languages/elixir.d.cts +29 -0
  21. package/dist/languages/elixir.d.ts +29 -0
  22. package/dist/languages/elixir.js +32 -0
  23. package/dist/languages/elixir.js.map +1 -0
  24. package/dist/languages/haskell.cjs +34 -0
  25. package/dist/languages/haskell.cjs.map +1 -0
  26. package/dist/languages/haskell.d.cts +29 -0
  27. package/dist/languages/haskell.d.ts +29 -0
  28. package/dist/languages/haskell.js +32 -0
  29. package/dist/languages/haskell.js.map +1 -0
  30. package/dist/languages/jupyter-notebook.cjs +34 -0
  31. package/dist/languages/jupyter-notebook.cjs.map +1 -0
  32. package/dist/languages/jupyter-notebook.d.cts +29 -0
  33. package/dist/languages/jupyter-notebook.d.ts +29 -0
  34. package/dist/languages/jupyter-notebook.js +32 -0
  35. package/dist/languages/jupyter-notebook.js.map +1 -0
  36. package/dist/languages/ocaml.cjs +34 -0
  37. package/dist/languages/ocaml.cjs.map +1 -0
  38. package/dist/languages/ocaml.d.cts +29 -0
  39. package/dist/languages/ocaml.d.ts +29 -0
  40. package/dist/languages/ocaml.js +32 -0
  41. package/dist/languages/ocaml.js.map +1 -0
  42. package/package.json +21 -1
package/dist/index.cjs CHANGED
@@ -683,6 +683,44 @@ var init_dockerfile = __esm({
683
683
  }
684
684
  });
685
685
 
686
+ // src/languages/elixir.ts
687
+ var elixir_exports = {};
688
+ __export(elixir_exports, {
689
+ elixir: () => exports.elixir
690
+ });
691
+ exports.elixir = void 0;
692
+ var init_elixir = __esm({
693
+ "src/languages/elixir.ts"() {
694
+ exports.elixir = {
695
+ slug: "elixir",
696
+ publishedDate: "2012-05-25",
697
+ extensions: [".ex", ".exs", ".eex", ".leex", ".heex"],
698
+ author: "Jose Valim",
699
+ website: "https://elixir-lang.org",
700
+ paradigms: ["functional", "concurrent", "distributed", "metaprogramming"],
701
+ tooling: {
702
+ runtimes: ["BEAM", "Erlang/OTP"],
703
+ packageManagers: ["Mix", "Hex"],
704
+ ecosystems: ["Web", "Distributed Systems", "Fault-tolerant Systems", "Data Processing"]
705
+ },
706
+ version: "1.19.5",
707
+ logo: "https://cdn.simpleicons.org/elixir/4B275F",
708
+ i18n: {
709
+ en: {
710
+ name: "Elixir",
711
+ description: "A dynamic functional language for scalable, maintainable, and fault-tolerant systems.",
712
+ longDescription: "Elixir runs on the BEAM virtual machine and combines functional programming, lightweight processes, message passing, pattern matching, macros, and OTP libraries for building concurrent and distributed software.\n\nIt is widely used for web applications with Phoenix, real-time systems, background jobs, data pipelines, embedded systems, and services that need resilience, observability, and high concurrency."
713
+ },
714
+ es: {
715
+ name: "Elixir",
716
+ description: "Un lenguaje funcional dinamico para sistemas escalables, mantenibles y tolerantes a fallos.",
717
+ longDescription: "Elixir corre sobre la maquina virtual BEAM y combina programacion funcional, procesos ligeros, paso de mensajes, pattern matching, macros y librerias OTP para construir software concurrente y distribuido.\n\nSe usa ampliamente en aplicaciones web con Phoenix, sistemas en tiempo real, trabajos en segundo plano, pipelines de datos, sistemas embebidos y servicios que necesitan resiliencia, observabilidad y alta concurrencia."
718
+ }
719
+ }
720
+ };
721
+ }
722
+ });
723
+
686
724
  // src/languages/elm.ts
687
725
  var elm_exports = {};
688
726
  __export(elm_exports, {
@@ -1062,6 +1100,44 @@ var init_groovy = __esm({
1062
1100
  }
1063
1101
  });
1064
1102
 
1103
+ // src/languages/haskell.ts
1104
+ var haskell_exports = {};
1105
+ __export(haskell_exports, {
1106
+ haskell: () => exports.haskell
1107
+ });
1108
+ exports.haskell = void 0;
1109
+ var init_haskell = __esm({
1110
+ "src/languages/haskell.ts"() {
1111
+ exports.haskell = {
1112
+ slug: "haskell",
1113
+ publishedDate: "1990-04-01",
1114
+ extensions: [".hs", ".lhs", ".hsc", ".hs-boot", ".hsig", ".cabal"],
1115
+ author: "Haskell Committee",
1116
+ website: "https://www.haskell.org",
1117
+ paradigms: ["functional", "declarative", "lazy evaluation", "statically typed"],
1118
+ tooling: {
1119
+ runtimes: ["GHC", "GHCi"],
1120
+ packageManagers: ["Cabal", "Stack", "GHCup"],
1121
+ ecosystems: ["Functional Programming", "Compilers", "Research", "Financial Systems"]
1122
+ },
1123
+ version: "GHC 9.14.1",
1124
+ logo: "https://cdn.simpleicons.org/haskell/5D4F85",
1125
+ i18n: {
1126
+ en: {
1127
+ name: "Haskell",
1128
+ description: "A lazy, purely functional language with strong static typing and expressive abstractions.",
1129
+ longDescription: "Haskell is a general-purpose functional programming language known for purity, lazy evaluation, algebraic data types, type classes, pattern matching, and a powerful static type system. The Haskell 2010 language standard is widely supported, while GHC adds many commonly used extensions.\n\nIt is used in compiler construction, programming language research, financial systems, formal methods, data processing, education, and production services that benefit from strong types and high-level abstractions."
1130
+ },
1131
+ es: {
1132
+ name: "Haskell",
1133
+ description: "Un lenguaje puramente funcional y lazy con tipado estatico fuerte y abstracciones expresivas.",
1134
+ longDescription: "Haskell es un lenguaje de programacion funcional de proposito general conocido por pureza, evaluacion lazy, tipos algebraicos, type classes, pattern matching y un sistema de tipos estatico potente. El estandar Haskell 2010 tiene amplio soporte, mientras GHC agrega muchas extensiones de uso comun.\n\nSe usa en construccion de compiladores, investigacion en lenguajes de programacion, sistemas financieros, metodos formales, procesamiento de datos, educacion y servicios de produccion que se benefician de tipos fuertes y abstracciones de alto nivel."
1135
+ }
1136
+ }
1137
+ };
1138
+ }
1139
+ });
1140
+
1065
1141
  // src/languages/hcl.ts
1066
1142
  var hcl_exports = {};
1067
1143
  __export(hcl_exports, {
@@ -1316,6 +1392,44 @@ var init_julia = __esm({
1316
1392
  }
1317
1393
  });
1318
1394
 
1395
+ // src/languages/jupyter-notebook.ts
1396
+ var jupyter_notebook_exports = {};
1397
+ __export(jupyter_notebook_exports, {
1398
+ jupyterNotebook: () => exports.jupyterNotebook
1399
+ });
1400
+ exports.jupyterNotebook = void 0;
1401
+ var init_jupyter_notebook = __esm({
1402
+ "src/languages/jupyter-notebook.ts"() {
1403
+ exports.jupyterNotebook = {
1404
+ slug: "jupyter-notebook",
1405
+ publishedDate: "2011-12-21",
1406
+ extensions: [".ipynb"],
1407
+ author: "Project Jupyter",
1408
+ website: "https://jupyter.org",
1409
+ paradigms: ["literate programming", "interactive computing", "data serialization", "markup"],
1410
+ tooling: {
1411
+ runtimes: ["Jupyter Notebook", "JupyterLab", "VS Code"],
1412
+ packageManagers: ["pip", "conda", "mamba"],
1413
+ ecosystems: ["Data Science", "Machine Learning", "Scientific Computing", "Education"]
1414
+ },
1415
+ version: "nbformat 4.5",
1416
+ logo: "https://cdn.simpleicons.org/jupyter/F37626",
1417
+ i18n: {
1418
+ en: {
1419
+ name: "Jupyter Notebook",
1420
+ description: "A JSON-based notebook format for combining live code, narrative text, outputs, and media.",
1421
+ longDescription: "Jupyter Notebook files store executable code cells, Markdown narrative, rich outputs, metadata, and kernel information in a JSON document with the .ipynb extension.\n\nThey are widely used for data analysis, machine learning experiments, scientific computing, education, tutorials, reports, and reproducible computational workflows."
1422
+ },
1423
+ es: {
1424
+ name: "Jupyter Notebook",
1425
+ description: "Un formato de notebook basado en JSON para combinar codigo vivo, texto, salidas y medios.",
1426
+ longDescription: "Los archivos Jupyter Notebook guardan celdas de codigo ejecutable, narrativa en Markdown, salidas enriquecidas, metadatos e informacion del kernel en un documento JSON con extension .ipynb.\n\nSe usan ampliamente en analisis de datos, experimentos de machine learning, computacion cientifica, educacion, tutoriales, reportes y flujos computacionales reproducibles."
1427
+ }
1428
+ }
1429
+ };
1430
+ }
1431
+ });
1432
+
1319
1433
  // src/languages/kotlin.ts
1320
1434
  var kotlin_exports = {};
1321
1435
  __export(kotlin_exports, {
@@ -1764,6 +1878,44 @@ var init_objective_c = __esm({
1764
1878
  }
1765
1879
  });
1766
1880
 
1881
+ // src/languages/ocaml.ts
1882
+ var ocaml_exports = {};
1883
+ __export(ocaml_exports, {
1884
+ ocaml: () => exports.ocaml
1885
+ });
1886
+ exports.ocaml = void 0;
1887
+ var init_ocaml = __esm({
1888
+ "src/languages/ocaml.ts"() {
1889
+ exports.ocaml = {
1890
+ slug: "ocaml",
1891
+ publishedDate: "1996-01-01",
1892
+ extensions: [".ml", ".mli", ".mll", ".mly", ".mlt", ".eliom", ".eliomi"],
1893
+ author: "Xavier Leroy, Jerome Vouillon, Damien Doligez, Didier Remy, Ascander Suarez",
1894
+ website: "https://ocaml.org",
1895
+ paradigms: ["functional", "imperative", "object-oriented", "modular"],
1896
+ tooling: {
1897
+ runtimes: ["OCaml Runtime", "Native Code Compiler", "Bytecode Interpreter"],
1898
+ packageManagers: ["opam", "Dune"],
1899
+ ecosystems: ["Compilers", "Formal Methods", "Systems Programming", "Web"]
1900
+ },
1901
+ version: "5.6.0",
1902
+ logo: "https://cdn.simpleicons.org/ocaml/EC6813",
1903
+ i18n: {
1904
+ en: {
1905
+ name: "OCaml",
1906
+ description: "A statically typed ML-family language with modules, inference, and native compilation.",
1907
+ longDescription: "OCaml combines functional, imperative, and object-oriented programming with Hindley-Milner type inference, algebraic data types, pattern matching, functors, and a powerful module system.\n\nIt is used for compilers, theorem provers, static analysis, developer tools, financial systems, systems software, and production services where strong types, performance, and maintainability matter."
1908
+ },
1909
+ es: {
1910
+ name: "OCaml",
1911
+ description: "Un lenguaje de la familia ML con tipado estatico, modulos, inferencia y compilacion nativa.",
1912
+ longDescription: "OCaml combina programacion funcional, imperativa y orientada a objetos con inferencia de tipos Hindley-Milner, tipos algebraicos, pattern matching, functors y un sistema de modulos potente.\n\nSe usa en compiladores, demostradores de teoremas, analisis estatico, herramientas de desarrollo, sistemas financieros, software de sistemas y servicios de produccion donde importan los tipos fuertes, el rendimiento y la mantenibilidad."
1913
+ }
1914
+ }
1915
+ };
1916
+ }
1917
+ });
1918
+
1767
1919
  // src/languages/pascal.ts
1768
1920
  var pascal_exports = {};
1769
1921
  __export(pascal_exports, {
@@ -2824,6 +2976,7 @@ init_css();
2824
2976
  init_cuda();
2825
2977
  init_dart();
2826
2978
  init_dockerfile();
2979
+ init_elixir();
2827
2980
  init_elm();
2828
2981
  init_erlang();
2829
2982
  init_fortran();
@@ -2834,6 +2987,7 @@ init_go();
2834
2987
  init_gradle();
2835
2988
  init_graphql();
2836
2989
  init_groovy();
2990
+ init_haskell();
2837
2991
  init_hcl();
2838
2992
  init_html();
2839
2993
  init_ini();
@@ -2841,6 +2995,7 @@ init_java();
2841
2995
  init_javascript();
2842
2996
  init_json();
2843
2997
  init_julia();
2998
+ init_jupyter_notebook();
2844
2999
  init_kotlin();
2845
3000
  init_less();
2846
3001
  init_lisp();
@@ -2853,6 +3008,7 @@ init_metal();
2853
3008
  init_nginx();
2854
3009
  init_nix();
2855
3010
  init_objective_c();
3011
+ init_ocaml();
2856
3012
  init_pascal();
2857
3013
  init_perl();
2858
3014
  init_php();
@@ -2900,6 +3056,7 @@ var languages = [
2900
3056
  exports.cuda,
2901
3057
  exports.dart,
2902
3058
  exports.dockerfile,
3059
+ exports.elixir,
2903
3060
  exports.elm,
2904
3061
  exports.erlang,
2905
3062
  exports.fortran,
@@ -2910,12 +3067,14 @@ var languages = [
2910
3067
  exports.glsl,
2911
3068
  exports.graphql,
2912
3069
  exports.groovy,
3070
+ exports.haskell,
2913
3071
  exports.hcl,
2914
3072
  exports.html,
2915
3073
  exports.ini,
2916
3074
  exports.java,
2917
3075
  exports.javascript,
2918
3076
  exports.json,
3077
+ exports.jupyterNotebook,
2919
3078
  exports.julia,
2920
3079
  exports.kotlin,
2921
3080
  exports.less,
@@ -2929,6 +3088,7 @@ var languages = [
2929
3088
  exports.svn,
2930
3089
  exports.nginx,
2931
3090
  exports.nix,
3091
+ exports.ocaml,
2932
3092
  exports.objectiveC,
2933
3093
  exports.pascal,
2934
3094
  exports.perl,
@@ -3034,6 +3194,7 @@ var languageIndex = [
3034
3194
  { slug: "cuda", extensions: [".cu", ".cuh"] },
3035
3195
  { slug: "dart", extensions: [".dart"] },
3036
3196
  { slug: "dockerfile", extensions: ["Dockerfile", ".dockerfile"] },
3197
+ { slug: "elixir", extensions: [".ex", ".exs", ".eex", ".leex", ".heex"] },
3037
3198
  { slug: "elm", extensions: [".elm"] },
3038
3199
  {
3039
3200
  slug: "erlang",
@@ -3053,12 +3214,14 @@ var languageIndex = [
3053
3214
  },
3054
3215
  { slug: "graphql", extensions: [".graphql", ".gql", ".graphqls"] },
3055
3216
  { slug: "groovy", extensions: [".groovy", ".gvy", ".gy", ".gsh"] },
3217
+ { slug: "haskell", extensions: [".hs", ".lhs", ".hsc", ".hs-boot", ".hsig", ".cabal"] },
3056
3218
  { slug: "hcl", extensions: [".hcl", ".tf", ".tfvars", ".pkr.hcl", ".nomad"] },
3057
3219
  { slug: "html", extensions: [".html", ".htm"] },
3058
3220
  { slug: "ini", extensions: [".ini"] },
3059
3221
  { slug: "java", extensions: [".java"] },
3060
3222
  { slug: "javascript", extensions: [".js", ".mjs", ".cjs", ".jsx"] },
3061
3223
  { slug: "json", extensions: [".json"] },
3224
+ { slug: "jupyter-notebook", extensions: [".ipynb"] },
3062
3225
  { slug: "julia", extensions: [".jl"] },
3063
3226
  { slug: "kotlin", extensions: [".kt", ".kts"] },
3064
3227
  { slug: "less", extensions: [".less"] },
@@ -3072,6 +3235,7 @@ var languageIndex = [
3072
3235
  { slug: "svn", extensions: [".svn", "svnserve.conf"] },
3073
3236
  { slug: "nginx", extensions: ["nginx.conf", ".nginx", ".conf"] },
3074
3237
  { slug: "nix", extensions: [".nix"] },
3238
+ { slug: "ocaml", extensions: [".ml", ".mli", ".mll", ".mly", ".mlt", ".eliom", ".eliomi"] },
3075
3239
  { slug: "objective-c", extensions: [".m", ".mm"] },
3076
3240
  { slug: "pascal", extensions: [".pas", ".pp", ".inc", ".lpr", ".dpr", ".dfm"] },
3077
3241
  { slug: "perl", extensions: [".pl", ".pm", ".pod", ".t", ".psgi"] },
@@ -3126,6 +3290,7 @@ var languageLoaders = {
3126
3290
  cuda: () => Promise.resolve().then(() => (init_cuda(), cuda_exports)).then((module) => module.cuda),
3127
3291
  dart: () => Promise.resolve().then(() => (init_dart(), dart_exports)).then((module) => module.dart),
3128
3292
  dockerfile: () => Promise.resolve().then(() => (init_dockerfile(), dockerfile_exports)).then((module) => module.dockerfile),
3293
+ elixir: () => Promise.resolve().then(() => (init_elixir(), elixir_exports)).then((module) => module.elixir),
3129
3294
  elm: () => Promise.resolve().then(() => (init_elm(), elm_exports)).then((module) => module.elm),
3130
3295
  erlang: () => Promise.resolve().then(() => (init_erlang(), erlang_exports)).then((module) => module.erlang),
3131
3296
  fortran: () => Promise.resolve().then(() => (init_fortran(), fortran_exports)).then((module) => module.fortran),
@@ -3136,12 +3301,14 @@ var languageLoaders = {
3136
3301
  glsl: () => Promise.resolve().then(() => (init_glsl(), glsl_exports)).then((module) => module.glsl),
3137
3302
  graphql: () => Promise.resolve().then(() => (init_graphql(), graphql_exports)).then((module) => module.graphql),
3138
3303
  groovy: () => Promise.resolve().then(() => (init_groovy(), groovy_exports)).then((module) => module.groovy),
3304
+ haskell: () => Promise.resolve().then(() => (init_haskell(), haskell_exports)).then((module) => module.haskell),
3139
3305
  hcl: () => Promise.resolve().then(() => (init_hcl(), hcl_exports)).then((module) => module.hcl),
3140
3306
  html: () => Promise.resolve().then(() => (init_html(), html_exports)).then((module) => module.html),
3141
3307
  ini: () => Promise.resolve().then(() => (init_ini(), ini_exports)).then((module) => module.ini),
3142
3308
  java: () => Promise.resolve().then(() => (init_java(), java_exports)).then((module) => module.java),
3143
3309
  javascript: () => Promise.resolve().then(() => (init_javascript(), javascript_exports)).then((module) => module.javascript),
3144
3310
  json: () => Promise.resolve().then(() => (init_json(), json_exports)).then((module) => module.json),
3311
+ "jupyter-notebook": () => Promise.resolve().then(() => (init_jupyter_notebook(), jupyter_notebook_exports)).then((module) => module.jupyterNotebook),
3145
3312
  julia: () => Promise.resolve().then(() => (init_julia(), julia_exports)).then((module) => module.julia),
3146
3313
  kotlin: () => Promise.resolve().then(() => (init_kotlin(), kotlin_exports)).then((module) => module.kotlin),
3147
3314
  less: () => Promise.resolve().then(() => (init_less(), less_exports)).then((module) => module.less),
@@ -3155,6 +3322,7 @@ var languageLoaders = {
3155
3322
  svn: () => Promise.resolve().then(() => (init_svn(), svn_exports)).then((module) => module.svn),
3156
3323
  nginx: () => Promise.resolve().then(() => (init_nginx(), nginx_exports)).then((module) => module.nginx),
3157
3324
  nix: () => Promise.resolve().then(() => (init_nix(), nix_exports)).then((module) => module.nix),
3325
+ ocaml: () => Promise.resolve().then(() => (init_ocaml(), ocaml_exports)).then((module) => module.ocaml),
3158
3326
  "objective-c": () => Promise.resolve().then(() => (init_objective_c(), objective_c_exports)).then((module) => module.objectiveC),
3159
3327
  pascal: () => Promise.resolve().then(() => (init_pascal(), pascal_exports)).then((module) => module.pascal),
3160
3328
  perl: () => Promise.resolve().then(() => (init_perl(), perl_exports)).then((module) => module.perl),
@@ -3298,6 +3466,7 @@ init_css();
3298
3466
  init_cuda();
3299
3467
  init_dart();
3300
3468
  init_dockerfile();
3469
+ init_elixir();
3301
3470
  init_elm();
3302
3471
  init_erlang();
3303
3472
  init_fortran();
@@ -3308,12 +3477,14 @@ init_gradle();
3308
3477
  init_glsl();
3309
3478
  init_graphql();
3310
3479
  init_groovy();
3480
+ init_haskell();
3311
3481
  init_hcl();
3312
3482
  init_html();
3313
3483
  init_ini();
3314
3484
  init_java();
3315
3485
  init_javascript();
3316
3486
  init_json();
3487
+ init_jupyter_notebook();
3317
3488
  init_julia();
3318
3489
  init_kotlin();
3319
3490
  init_less();
@@ -3326,6 +3497,7 @@ init_meson();
3326
3497
  init_metal();
3327
3498
  init_nginx();
3328
3499
  init_nix();
3500
+ init_ocaml();
3329
3501
  init_objective_c();
3330
3502
  init_pascal();
3331
3503
  init_perl();