code-languages 1.13.0 → 1.15.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 (48) hide show
  1. package/README.md +21 -0
  2. package/dist/api.cjs +210 -0
  3. package/dist/api.cjs.map +1 -1
  4. package/dist/api.d.cts +135 -0
  5. package/dist/api.d.ts +135 -0
  6. package/dist/api.js +210 -0
  7. package/dist/api.js.map +1 -1
  8. package/dist/detect.cjs +150 -0
  9. package/dist/detect.cjs.map +1 -1
  10. package/dist/detect.js +150 -0
  11. package/dist/detect.js.map +1 -1
  12. package/dist/index.cjs +215 -0
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +135 -0
  15. package/dist/index.d.ts +135 -0
  16. package/dist/index.js +216 -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/dist/languages/protobuf.cjs +34 -0
  43. package/dist/languages/protobuf.cjs.map +1 -0
  44. package/dist/languages/protobuf.d.cts +29 -0
  45. package/dist/languages/protobuf.d.ts +29 -0
  46. package/dist/languages/protobuf.js +32 -0
  47. package/dist/languages/protobuf.js.map +1 -0
  48. package/package.json +26 -1
package/dist/detect.cjs CHANGED
@@ -511,6 +511,35 @@ var dockerfile = {
511
511
  }
512
512
  };
513
513
 
514
+ // src/languages/elixir.ts
515
+ var elixir = {
516
+ slug: "elixir",
517
+ publishedDate: "2012-05-25",
518
+ extensions: [".ex", ".exs", ".eex", ".leex", ".heex"],
519
+ author: "Jose Valim",
520
+ website: "https://elixir-lang.org",
521
+ paradigms: ["functional", "concurrent", "distributed", "metaprogramming"],
522
+ tooling: {
523
+ runtimes: ["BEAM", "Erlang/OTP"],
524
+ packageManagers: ["Mix", "Hex"],
525
+ ecosystems: ["Web", "Distributed Systems", "Fault-tolerant Systems", "Data Processing"]
526
+ },
527
+ version: "1.19.5",
528
+ logo: "https://cdn.simpleicons.org/elixir/4B275F",
529
+ i18n: {
530
+ en: {
531
+ name: "Elixir",
532
+ description: "A dynamic functional language for scalable, maintainable, and fault-tolerant systems.",
533
+ 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."
534
+ },
535
+ es: {
536
+ name: "Elixir",
537
+ description: "Un lenguaje funcional dinamico para sistemas escalables, mantenibles y tolerantes a fallos.",
538
+ 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."
539
+ }
540
+ }
541
+ };
542
+
514
543
  // src/languages/elm.ts
515
544
  var elm = {
516
545
  slug: "elm",
@@ -800,6 +829,35 @@ var groovy = {
800
829
  }
801
830
  };
802
831
 
832
+ // src/languages/haskell.ts
833
+ var haskell = {
834
+ slug: "haskell",
835
+ publishedDate: "1990-04-01",
836
+ extensions: [".hs", ".lhs", ".hsc", ".hs-boot", ".hsig", ".cabal"],
837
+ author: "Haskell Committee",
838
+ website: "https://www.haskell.org",
839
+ paradigms: ["functional", "declarative", "lazy evaluation", "statically typed"],
840
+ tooling: {
841
+ runtimes: ["GHC", "GHCi"],
842
+ packageManagers: ["Cabal", "Stack", "GHCup"],
843
+ ecosystems: ["Functional Programming", "Compilers", "Research", "Financial Systems"]
844
+ },
845
+ version: "GHC 9.14.1",
846
+ logo: "https://cdn.simpleicons.org/haskell/5D4F85",
847
+ i18n: {
848
+ en: {
849
+ name: "Haskell",
850
+ description: "A lazy, purely functional language with strong static typing and expressive abstractions.",
851
+ 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."
852
+ },
853
+ es: {
854
+ name: "Haskell",
855
+ description: "Un lenguaje puramente funcional y lazy con tipado estatico fuerte y abstracciones expresivas.",
856
+ 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."
857
+ }
858
+ }
859
+ };
860
+
803
861
  // src/languages/hcl.ts
804
862
  var hcl = {
805
863
  slug: "hcl",
@@ -991,6 +1049,35 @@ var julia = {
991
1049
  }
992
1050
  };
993
1051
 
1052
+ // src/languages/jupyter-notebook.ts
1053
+ var jupyterNotebook = {
1054
+ slug: "jupyter-notebook",
1055
+ publishedDate: "2011-12-21",
1056
+ extensions: [".ipynb"],
1057
+ author: "Project Jupyter",
1058
+ website: "https://jupyter.org",
1059
+ paradigms: ["literate programming", "interactive computing", "data serialization", "markup"],
1060
+ tooling: {
1061
+ runtimes: ["Jupyter Notebook", "JupyterLab", "VS Code"],
1062
+ packageManagers: ["pip", "conda", "mamba"],
1063
+ ecosystems: ["Data Science", "Machine Learning", "Scientific Computing", "Education"]
1064
+ },
1065
+ version: "nbformat 4.5",
1066
+ logo: "https://cdn.simpleicons.org/jupyter/F37626",
1067
+ i18n: {
1068
+ en: {
1069
+ name: "Jupyter Notebook",
1070
+ description: "A JSON-based notebook format for combining live code, narrative text, outputs, and media.",
1071
+ 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."
1072
+ },
1073
+ es: {
1074
+ name: "Jupyter Notebook",
1075
+ description: "Un formato de notebook basado en JSON para combinar codigo vivo, texto, salidas y medios.",
1076
+ 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."
1077
+ }
1078
+ }
1079
+ };
1080
+
994
1081
  // src/languages/kotlin.ts
995
1082
  var kotlin = {
996
1083
  slug: "kotlin",
@@ -1331,6 +1418,35 @@ var objectiveC = {
1331
1418
  }
1332
1419
  };
1333
1420
 
1421
+ // src/languages/ocaml.ts
1422
+ var ocaml = {
1423
+ slug: "ocaml",
1424
+ publishedDate: "1996-01-01",
1425
+ extensions: [".ml", ".mli", ".mll", ".mly", ".mlt", ".eliom", ".eliomi"],
1426
+ author: "Xavier Leroy, Jerome Vouillon, Damien Doligez, Didier Remy, Ascander Suarez",
1427
+ website: "https://ocaml.org",
1428
+ paradigms: ["functional", "imperative", "object-oriented", "modular"],
1429
+ tooling: {
1430
+ runtimes: ["OCaml Runtime", "Native Code Compiler", "Bytecode Interpreter"],
1431
+ packageManagers: ["opam", "Dune"],
1432
+ ecosystems: ["Compilers", "Formal Methods", "Systems Programming", "Web"]
1433
+ },
1434
+ version: "5.6.0",
1435
+ logo: "https://cdn.simpleicons.org/ocaml/EC6813",
1436
+ i18n: {
1437
+ en: {
1438
+ name: "OCaml",
1439
+ description: "A statically typed ML-family language with modules, inference, and native compilation.",
1440
+ 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."
1441
+ },
1442
+ es: {
1443
+ name: "OCaml",
1444
+ description: "Un lenguaje de la familia ML con tipado estatico, modulos, inferencia y compilacion nativa.",
1445
+ 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."
1446
+ }
1447
+ }
1448
+ };
1449
+
1334
1450
  // src/languages/pascal.ts
1335
1451
  var pascal = {
1336
1452
  slug: "pascal",
@@ -1447,6 +1563,35 @@ var powershell = {
1447
1563
  }
1448
1564
  };
1449
1565
 
1566
+ // src/languages/protobuf.ts
1567
+ var protobuf = {
1568
+ slug: "protobuf",
1569
+ publishedDate: "2008-07-07",
1570
+ extensions: [".proto"],
1571
+ author: "Google",
1572
+ website: "https://protobuf.dev",
1573
+ paradigms: ["interface-definition", "schema", "declarative", "data-serialization"],
1574
+ tooling: {
1575
+ runtimes: ["Protocol Buffers Runtime", "gRPC"],
1576
+ packageManagers: ["Buf", "npm", "Maven", "Go modules", "NuGet", "PyPI"],
1577
+ ecosystems: ["gRPC", "APIs", "Microservices", "Data Serialization"]
1578
+ },
1579
+ version: "34.1",
1580
+ logo: "https://cdn.simpleicons.org/google/4285F4",
1581
+ i18n: {
1582
+ en: {
1583
+ name: "Protocol Buffers",
1584
+ description: "Google's language-neutral schema format for structured data serialization and service APIs.",
1585
+ longDescription: "Protocol Buffers is a language-neutral, platform-neutral mechanism for defining structured data schemas and generating strongly typed code in many programming languages. `.proto` files describe messages, fields, enums, services, packages, imports, options, and RPC contracts.\n\nIt is widely used with gRPC, microservices, distributed systems, APIs, telemetry, configuration, event streams, and storage formats that need compact binary serialization and stable cross-language contracts."
1586
+ },
1587
+ es: {
1588
+ name: "Protocol Buffers",
1589
+ description: "El formato de schemas neutral de Google para serializacion de datos estructurados y APIs de servicios.",
1590
+ longDescription: "Protocol Buffers es un mecanismo neutral en lenguaje y plataforma para definir schemas de datos estructurados y generar codigo tipado en muchos lenguajes de programacion. Los archivos `.proto` describen mensajes, campos, enums, servicios, paquetes, imports, opciones y contratos RPC.\n\nSe usa ampliamente con gRPC, microservicios, sistemas distribuidos, APIs, telemetria, configuracion, flujos de eventos y formatos de almacenamiento que necesitan serializacion binaria compacta y contratos estables entre lenguajes."
1591
+ }
1592
+ }
1593
+ };
1594
+
1450
1595
  // src/languages/pug.ts
1451
1596
  var pug = {
1452
1597
  slug: "pug",
@@ -2140,6 +2285,7 @@ var languages = [
2140
2285
  cuda,
2141
2286
  dart,
2142
2287
  dockerfile,
2288
+ elixir,
2143
2289
  elm,
2144
2290
  erlang,
2145
2291
  fortran,
@@ -2150,12 +2296,14 @@ var languages = [
2150
2296
  glsl,
2151
2297
  graphql,
2152
2298
  groovy,
2299
+ haskell,
2153
2300
  hcl,
2154
2301
  html,
2155
2302
  ini,
2156
2303
  java,
2157
2304
  javascript,
2158
2305
  json,
2306
+ jupyterNotebook,
2159
2307
  julia,
2160
2308
  kotlin,
2161
2309
  less,
@@ -2169,11 +2317,13 @@ var languages = [
2169
2317
  svn,
2170
2318
  nginx,
2171
2319
  nix,
2320
+ ocaml,
2172
2321
  objectiveC,
2173
2322
  pascal,
2174
2323
  perl,
2175
2324
  php,
2176
2325
  powershell,
2326
+ protobuf,
2177
2327
  pug,
2178
2328
  python,
2179
2329
  r,