code-languages 1.12.4 → 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 (60) hide show
  1. package/README.md +33 -2
  2. package/dist/api.cjs +294 -0
  3. package/dist/api.cjs.map +1 -1
  4. package/dist/api.d.cts +189 -0
  5. package/dist/api.d.ts +189 -0
  6. package/dist/api.js +294 -0
  7. package/dist/api.js.map +1 -1
  8. package/dist/detect.cjs +210 -0
  9. package/dist/detect.cjs.map +1 -1
  10. package/dist/detect.js +210 -0
  11. package/dist/detect.js.map +1 -1
  12. package/dist/index.cjs +301 -0
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +189 -0
  15. package/dist/index.d.ts +189 -0
  16. package/dist/index.js +302 -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/hcl.cjs +34 -0
  31. package/dist/languages/hcl.cjs.map +1 -0
  32. package/dist/languages/hcl.d.cts +29 -0
  33. package/dist/languages/hcl.d.ts +29 -0
  34. package/dist/languages/hcl.js +32 -0
  35. package/dist/languages/hcl.js.map +1 -0
  36. package/dist/languages/jupyter-notebook.cjs +34 -0
  37. package/dist/languages/jupyter-notebook.cjs.map +1 -0
  38. package/dist/languages/jupyter-notebook.d.cts +29 -0
  39. package/dist/languages/jupyter-notebook.d.ts +29 -0
  40. package/dist/languages/jupyter-notebook.js +32 -0
  41. package/dist/languages/jupyter-notebook.js.map +1 -0
  42. package/dist/languages/ocaml.cjs +34 -0
  43. package/dist/languages/ocaml.cjs.map +1 -0
  44. package/dist/languages/ocaml.d.cts +29 -0
  45. package/dist/languages/ocaml.d.ts +29 -0
  46. package/dist/languages/ocaml.js +32 -0
  47. package/dist/languages/ocaml.js.map +1 -0
  48. package/dist/languages/razor.cjs +34 -0
  49. package/dist/languages/razor.cjs.map +1 -0
  50. package/dist/languages/razor.d.cts +29 -0
  51. package/dist/languages/razor.d.ts +29 -0
  52. package/dist/languages/razor.js +32 -0
  53. package/dist/languages/razor.js.map +1 -0
  54. package/dist/languages/solidity.cjs +34 -0
  55. package/dist/languages/solidity.cjs.map +1 -0
  56. package/dist/languages/solidity.d.cts +29 -0
  57. package/dist/languages/solidity.d.ts +29 -0
  58. package/dist/languages/solidity.js +32 -0
  59. package/dist/languages/solidity.js.map +1 -0
  60. package/package.json +36 -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,64 @@ 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
+
861
+ // src/languages/hcl.ts
862
+ var hcl = {
863
+ slug: "hcl",
864
+ publishedDate: "2014-01-01",
865
+ extensions: [".hcl", ".tf", ".tfvars", ".pkr.hcl", ".nomad"],
866
+ author: "HashiCorp",
867
+ website: "https://github.com/hashicorp/hcl",
868
+ paradigms: ["declarative", "configuration", "data-serialization"],
869
+ tooling: {
870
+ runtimes: ["Terraform", "Packer", "Nomad", "Vault", "Consul"],
871
+ packageManagers: ["Terraform Registry"],
872
+ ecosystems: ["Infrastructure as Code", "DevOps", "Cloud", "HashiCorp"]
873
+ },
874
+ version: "2.24.0",
875
+ logo: "https://cdn.simpleicons.org/hashicorp/844FBA",
876
+ i18n: {
877
+ en: {
878
+ name: "HCL",
879
+ description: "HashiCorp Configuration Language for human-readable infrastructure and application configuration.",
880
+ longDescription: "HCL is HashiCorp Configuration Language, a structured configuration language designed to be readable by humans while remaining easy for tools to parse. It supports blocks, attributes, expressions, variables, functions, object values, and references used to describe infrastructure and application settings.\n\nIt is best known through Terraform, but it is also used across HashiCorp tools such as Packer, Nomad, Vault, and Consul. HCL files commonly define cloud resources, modules, providers, jobs, policies, templates, and environment-specific variables."
881
+ },
882
+ es: {
883
+ name: "HCL",
884
+ description: "El lenguaje de configuracion de HashiCorp para infraestructura y configuracion legible por humanos.",
885
+ longDescription: "HCL es HashiCorp Configuration Language, un lenguaje de configuracion estructurado disenado para ser legible por humanos y facil de analizar por herramientas. Soporta bloques, atributos, expresiones, variables, funciones, valores de objeto y referencias usadas para describir infraestructura y configuracion de aplicaciones.\n\nEs conocido principalmente por Terraform, pero tambien se usa en herramientas de HashiCorp como Packer, Nomad, Vault y Consul. Los archivos HCL suelen definir recursos cloud, modulos, providers, jobs, politicas, templates y variables especificas por entorno."
886
+ }
887
+ }
888
+ };
889
+
803
890
  // src/languages/html.ts
804
891
  var html = {
805
892
  slug: "html",
@@ -962,6 +1049,35 @@ var julia = {
962
1049
  }
963
1050
  };
964
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
+
965
1081
  // src/languages/kotlin.ts
966
1082
  var kotlin = {
967
1083
  slug: "kotlin",
@@ -1302,6 +1418,35 @@ var objectiveC = {
1302
1418
  }
1303
1419
  };
1304
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
+
1305
1450
  // src/languages/pascal.ts
1306
1451
  var pascal = {
1307
1452
  slug: "pascal",
@@ -1505,6 +1650,35 @@ var r = {
1505
1650
  }
1506
1651
  };
1507
1652
 
1653
+ // src/languages/razor.ts
1654
+ var razor = {
1655
+ slug: "razor",
1656
+ publishedDate: "2010-07-01",
1657
+ extensions: [".cshtml", ".razor"],
1658
+ author: "Microsoft",
1659
+ website: "https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor",
1660
+ paradigms: ["templating", "component-based", "server-side", "declarative"],
1661
+ tooling: {
1662
+ runtimes: ["ASP.NET Core", ".NET", "Blazor"],
1663
+ packageManagers: ["NuGet"],
1664
+ ecosystems: [".NET", "ASP.NET Core", "Web", "Blazor"]
1665
+ },
1666
+ version: "10.0.8",
1667
+ logo: "https://cdn.simpleicons.org/dotnet/512BD4",
1668
+ i18n: {
1669
+ en: {
1670
+ name: "Razor",
1671
+ description: "Microsoft's markup syntax for ASP.NET Core views, Razor Pages, and Blazor components.",
1672
+ longDescription: "Razor is a markup syntax and templating language used by ASP.NET Core to combine HTML with C# expressions, directives, layouts, tag helpers, components, and server-side or interactive rendering logic.\n\nIt is used in MVC views, Razor Pages, Razor Class Libraries, and Blazor components. Razor files commonly define page templates, reusable UI components, forms, layouts, routing, component parameters, and bindings within .NET web applications."
1673
+ },
1674
+ es: {
1675
+ name: "Razor",
1676
+ description: "La sintaxis de marcado de Microsoft para vistas ASP.NET Core, Razor Pages y componentes Blazor.",
1677
+ longDescription: "Razor es una sintaxis de marcado y lenguaje de templates usado por ASP.NET Core para combinar HTML con expresiones C#, directivas, layouts, tag helpers, componentes y logica de renderizado server-side o interactiva.\n\nSe usa en vistas MVC, Razor Pages, Razor Class Libraries y componentes Blazor. Los archivos Razor suelen definir templates de paginas, componentes UI reutilizables, formularios, layouts, routing, parametros de componentes y bindings dentro de aplicaciones web .NET."
1678
+ }
1679
+ }
1680
+ };
1681
+
1508
1682
  // src/languages/ruby.ts
1509
1683
  var ruby = {
1510
1684
  slug: "ruby",
@@ -1621,6 +1795,35 @@ var scss = {
1621
1795
  }
1622
1796
  };
1623
1797
 
1798
+ // src/languages/solidity.ts
1799
+ var solidity = {
1800
+ slug: "solidity",
1801
+ publishedDate: "2015-07-30",
1802
+ extensions: [".sol"],
1803
+ author: "Gavin Wood / Ethereum Foundation / Solidity Team",
1804
+ website: "https://soliditylang.org",
1805
+ paradigms: ["contract-oriented", "object-oriented", "statically-typed", "imperative"],
1806
+ tooling: {
1807
+ runtimes: ["Ethereum Virtual Machine", "EVM-compatible chains"],
1808
+ packageManagers: ["npm", "Foundry", "Hardhat"],
1809
+ ecosystems: ["Ethereum", "Web3", "Smart Contracts", "Blockchain"]
1810
+ },
1811
+ version: "0.8.35",
1812
+ logo: "https://cdn.simpleicons.org/solidity/363636",
1813
+ i18n: {
1814
+ en: {
1815
+ name: "Solidity",
1816
+ description: "A statically typed smart contract language for Ethereum and EVM-compatible blockchains.",
1817
+ longDescription: "Solidity is a statically typed, contract-oriented programming language designed for writing smart contracts that run on the Ethereum Virtual Machine and compatible blockchain networks. It supports contracts, libraries, interfaces, inheritance, modifiers, events, custom errors, ABI encoding, and explicit visibility and mutability rules.\n\nIt is used to build decentralized applications, token contracts, DAOs, DeFi protocols, NFT contracts, governance systems, and other on-chain programs where deterministic execution and verifiable state transitions are required."
1818
+ },
1819
+ es: {
1820
+ name: "Solidity",
1821
+ description: "Un lenguaje tipado estaticamente para smart contracts en Ethereum y blockchains compatibles con EVM.",
1822
+ longDescription: "Solidity es un lenguaje de programacion tipado estaticamente y orientado a contratos, disenado para escribir smart contracts que se ejecutan en Ethereum Virtual Machine y redes blockchain compatibles. Soporta contratos, bibliotecas, interfaces, herencia, modificadores, eventos, errores personalizados, codificacion ABI y reglas explicitas de visibilidad y mutabilidad.\n\nSe usa para construir aplicaciones descentralizadas, contratos de tokens, DAOs, protocolos DeFi, contratos NFT, sistemas de gobernanza y otros programas on-chain donde se requiere ejecucion determinista y transiciones de estado verificables."
1823
+ }
1824
+ }
1825
+ };
1826
+
1624
1827
  // src/languages/sql.ts
1625
1828
  var sql = {
1626
1829
  slug: "sql",
@@ -2053,6 +2256,7 @@ var languages = [
2053
2256
  cuda,
2054
2257
  dart,
2055
2258
  dockerfile,
2259
+ elixir,
2056
2260
  elm,
2057
2261
  erlang,
2058
2262
  fortran,
@@ -2063,11 +2267,14 @@ var languages = [
2063
2267
  glsl,
2064
2268
  graphql,
2065
2269
  groovy,
2270
+ haskell,
2271
+ hcl,
2066
2272
  html,
2067
2273
  ini,
2068
2274
  java,
2069
2275
  javascript,
2070
2276
  json,
2277
+ jupyterNotebook,
2071
2278
  julia,
2072
2279
  kotlin,
2073
2280
  less,
@@ -2081,6 +2288,7 @@ var languages = [
2081
2288
  svn,
2082
2289
  nginx,
2083
2290
  nix,
2291
+ ocaml,
2084
2292
  objectiveC,
2085
2293
  pascal,
2086
2294
  perl,
@@ -2089,10 +2297,12 @@ var languages = [
2089
2297
  pug,
2090
2298
  python,
2091
2299
  r,
2300
+ razor,
2092
2301
  ruby,
2093
2302
  rust,
2094
2303
  scala,
2095
2304
  scss,
2305
+ solidity,
2096
2306
  sql,
2097
2307
  svg,
2098
2308
  svelte,