code-languages 1.36.5 → 1.38.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 +93 -3
- package/dist/api-CjNcbLKv.d.cts +134 -0
- package/dist/api-u3GKPoGq.d.ts +134 -0
- package/dist/api.cjs +3687 -1537
- package/dist/api.d.cts +3 -77
- package/dist/api.d.ts +3 -77
- package/dist/api.js +3687 -1537
- package/dist/detect-slugs.cjs +25 -3
- package/dist/detect-slugs.d.cts +1 -1
- package/dist/detect-slugs.d.ts +1 -1
- package/dist/detect-slugs.js +25 -3
- package/dist/detect.cjs +1096 -3
- package/dist/detect.js +1096 -3
- package/dist/i18n.cjs +1 -1
- package/dist/i18n.js +1 -1
- package/dist/index.cjs +3719 -1550
- package/dist/index.d.cts +1145 -134
- package/dist/index.d.ts +1145 -134
- package/dist/index.js +3718 -1551
- package/dist/languages/angelscript.cjs +52 -0
- package/dist/languages/angelscript.d.cts +49 -0
- package/dist/languages/angelscript.d.ts +49 -0
- package/dist/languages/angelscript.js +50 -0
- package/dist/languages/assemblyscript.cjs +52 -0
- package/dist/languages/assemblyscript.d.cts +49 -0
- package/dist/languages/assemblyscript.d.ts +49 -0
- package/dist/languages/assemblyscript.js +50 -0
- package/dist/languages/basic.cjs +48 -0
- package/dist/languages/basic.d.cts +45 -0
- package/dist/languages/basic.d.ts +45 -0
- package/dist/languages/basic.js +46 -0
- package/dist/languages/dax.cjs +56 -0
- package/dist/languages/dax.d.cts +48 -0
- package/dist/languages/dax.d.ts +48 -0
- package/dist/languages/dax.js +54 -0
- package/dist/languages/gml.cjs +52 -0
- package/dist/languages/gml.d.cts +49 -0
- package/dist/languages/gml.d.ts +49 -0
- package/dist/languages/gml.js +50 -0
- package/dist/languages/ink-narrative.cjs +52 -0
- package/dist/languages/ink-narrative.d.cts +49 -0
- package/dist/languages/ink-narrative.d.ts +49 -0
- package/dist/languages/ink-narrative.js +50 -0
- package/dist/languages/modelica.cjs +52 -0
- package/dist/languages/modelica.d.cts +49 -0
- package/dist/languages/modelica.d.ts +49 -0
- package/dist/languages/modelica.js +50 -0
- package/dist/languages/mumps.cjs +51 -0
- package/dist/languages/mumps.d.cts +48 -0
- package/dist/languages/mumps.d.ts +48 -0
- package/dist/languages/mumps.js +49 -0
- package/dist/languages/nextflow.cjs +52 -0
- package/dist/languages/nextflow.d.cts +49 -0
- package/dist/languages/nextflow.d.ts +49 -0
- package/dist/languages/nextflow.js +50 -0
- package/dist/languages/octave.cjs +52 -0
- package/dist/languages/octave.d.cts +49 -0
- package/dist/languages/octave.d.ts +49 -0
- package/dist/languages/octave.js +50 -0
- package/dist/languages/openscad.cjs +51 -0
- package/dist/languages/openscad.d.cts +48 -0
- package/dist/languages/openscad.d.ts +48 -0
- package/dist/languages/openscad.js +49 -0
- package/dist/languages/postscript.cjs +51 -0
- package/dist/languages/postscript.d.cts +48 -0
- package/dist/languages/postscript.d.ts +48 -0
- package/dist/languages/postscript.js +49 -0
- package/dist/languages/powerquery.cjs +51 -0
- package/dist/languages/powerquery.d.cts +48 -0
- package/dist/languages/powerquery.d.ts +48 -0
- package/dist/languages/powerquery.js +49 -0
- package/dist/languages/processing.cjs +52 -0
- package/dist/languages/processing.d.cts +49 -0
- package/dist/languages/processing.d.ts +49 -0
- package/dist/languages/processing.js +50 -0
- package/dist/languages/rpg.cjs +51 -0
- package/dist/languages/rpg.d.cts +48 -0
- package/dist/languages/rpg.d.ts +48 -0
- package/dist/languages/rpg.js +49 -0
- package/dist/languages/snakemake.cjs +52 -0
- package/dist/languages/snakemake.d.cts +49 -0
- package/dist/languages/snakemake.d.ts +49 -0
- package/dist/languages/snakemake.js +50 -0
- package/dist/languages/spss.cjs +52 -0
- package/dist/languages/spss.d.cts +49 -0
- package/dist/languages/spss.d.ts +49 -0
- package/dist/languages/spss.js +50 -0
- package/dist/languages/squirrel.cjs +52 -0
- package/dist/languages/squirrel.d.cts +49 -0
- package/dist/languages/squirrel.d.ts +49 -0
- package/dist/languages/squirrel.js +50 -0
- package/dist/languages/twee.cjs +52 -0
- package/dist/languages/twee.d.cts +49 -0
- package/dist/languages/twee.d.ts +49 -0
- package/dist/languages/twee.js +50 -0
- package/dist/languages/vba.cjs +51 -0
- package/dist/languages/vba.d.cts +48 -0
- package/dist/languages/vba.d.ts +48 -0
- package/dist/languages/vba.js +49 -0
- package/dist/languages/wdl.cjs +52 -0
- package/dist/languages/wdl.d.cts +49 -0
- package/dist/languages/wdl.d.ts +49 -0
- package/dist/languages/wdl.js +50 -0
- package/dist/languages/xpath.cjs +51 -0
- package/dist/languages/xpath.d.cts +48 -0
- package/dist/languages/xpath.d.ts +48 -0
- package/dist/languages/xpath.js +49 -0
- package/dist/{language-registry-59NJVWeg.d.cts → registry-p4uQJ2gP.d.cts} +66 -0
- package/dist/{language-registry-59NJVWeg.d.ts → registry-p4uQJ2gP.d.ts} +66 -0
- package/package.json +181 -68
package/README.md
CHANGED
|
@@ -134,6 +134,71 @@ such as `"Visual Basic"` and `"Jupyter Notebook!"` resolve to `visual-basic` and
|
|
|
134
134
|
imports so bundlers can lazy-load individual language modules when the consumer
|
|
135
135
|
build supports code splitting.
|
|
136
136
|
|
|
137
|
+
Use `api.runtime(value)` to query languages that run on a specific platform or runtime environment:
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
import { api } from "code-languages/api";
|
|
141
|
+
|
|
142
|
+
// Get runtime metadata
|
|
143
|
+
const info = api.runtime('node').info();
|
|
144
|
+
// {
|
|
145
|
+
// slug: 'node',
|
|
146
|
+
// name: 'Node.js',
|
|
147
|
+
// color: '#339933',
|
|
148
|
+
// logo: 'https://cdn.simpleicons.org/nodedotjs',
|
|
149
|
+
// website: 'https://nodejs.org',
|
|
150
|
+
// aliases: ['node', 'nodejs', 'node.js'],
|
|
151
|
+
// packageManagers: ['npm', 'pnpm', 'Yarn', 'Bun'],
|
|
152
|
+
// }
|
|
153
|
+
|
|
154
|
+
// Get languages that target this runtime
|
|
155
|
+
const langs = api.runtime('node').langs().get();
|
|
156
|
+
const langsEs = api.runtime('.net').langs().locale('es').get();
|
|
157
|
+
await api.runtime('jvm').langs().load();
|
|
158
|
+
|
|
159
|
+
// Returns undefined / [] for unknown values
|
|
160
|
+
api.runtime('unknown-xyz').info(); // undefined
|
|
161
|
+
api.runtime('unknown-xyz').langs().get(); // []
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Supported runtime aliases include: `node` / `nodejs` / `node.js`, `bun`, `deno`, `browser`,
|
|
165
|
+
`.net` / `dotnet`, `jvm` / `java`, `android`, `ios`, `python`, `ruby`, `rust`, `go` / `golang`,
|
|
166
|
+
`wasm`, `sql`, and many more. Searches `tooling.runtimes` and `tooling.ecosystems` on each language.
|
|
167
|
+
|
|
168
|
+
Use `api.packageManager(value)` to query languages that use a specific package manager:
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
import { api } from "code-languages/api";
|
|
172
|
+
|
|
173
|
+
// Get package manager metadata
|
|
174
|
+
const info = api.packageManager('npm').info();
|
|
175
|
+
// {
|
|
176
|
+
// slug: 'npm',
|
|
177
|
+
// name: 'npm',
|
|
178
|
+
// color: '#CB3837',
|
|
179
|
+
// logo: 'https://cdn.simpleicons.org/npm',
|
|
180
|
+
// website: 'https://npmjs.com',
|
|
181
|
+
// aliases: ['npm'],
|
|
182
|
+
// }
|
|
183
|
+
|
|
184
|
+
// Get languages that use this package manager
|
|
185
|
+
const langs = api.packageManager('cargo').langs().get();
|
|
186
|
+
const langsEs = api.packageManager('pip').langs().locale('es').get();
|
|
187
|
+
|
|
188
|
+
// Get runtime platforms that include this package manager
|
|
189
|
+
const runtimes = api.packageManager('npm').runtimes();
|
|
190
|
+
// [{ name: 'Node.js', ... }, { name: 'Bun', ... }, { name: 'Deno', ... }]
|
|
191
|
+
|
|
192
|
+
// Returns undefined / [] for unknown values
|
|
193
|
+
api.packageManager('unknown-xyz').info(); // undefined
|
|
194
|
+
api.packageManager('unknown-xyz').langs().get(); // []
|
|
195
|
+
api.packageManager('unknown-xyz').runtimes(); // []
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Supported package manager aliases include: `npm`, `pnpm`, `yarn`, `pip`, `poetry`, `uv`,
|
|
199
|
+
`cargo`, `maven`, `gradle`, `nuget`, `composer`, `hex`, `spm`, `rubygems`, `go-mod`,
|
|
200
|
+
`luarocks`, `opam`, `cpan`, and more. Searches `tooling.packageManagers` on each language.
|
|
201
|
+
|
|
137
202
|
Use `localizeLanguage` to read localized display content with English fallback:
|
|
138
203
|
|
|
139
204
|
```ts
|
|
@@ -194,7 +259,7 @@ console.log(detectProjectLanguages(files));
|
|
|
194
259
|
|
|
195
260
|
## Supported Languages
|
|
196
261
|
|
|
197
|
-
The catalog currently includes
|
|
262
|
+
The catalog currently includes 286 language entries. Each row can be imported directly
|
|
198
263
|
from its package subpath.
|
|
199
264
|
|
|
200
265
|
| Logo | Language | Slug | Extensions | Version | Import |
|
|
@@ -215,6 +280,7 @@ from its package subpath.
|
|
|
215
280
|
| <img src="https://cdn.simpleicons.org/asciidoctor/E40046" alt="AsciiDoc logo" width="24" height="24"> | AsciiDoc | `asciidoc` | `.adoc`, `.asciidoc`, `.asc` | `pre-spec` | `code-languages/asciidoc` |
|
|
216
281
|
| <img src="https://cdn.simpleicons.org/dotnet/512BD4" alt="ASP/ASPX logo" width="24" height="24"> | ASP/ASPX | `asp` | `.asp`, `.aspx`, `.ascx`, `.ashx`, `.asmx`, `.master` | `4.8.1` | `code-languages/asp` |
|
|
217
282
|
| <img src="https://cdn.simpleicons.org/assemblyscript/007AAC" alt="Assembly logo" width="24" height="24"> | Assembly | `assembly` | `.asm`, `.s`, `.S`, `.inc` | `Architecture-specific` | `code-languages/assembly` |
|
|
283
|
+
| <img src="https://avatars.githubusercontent.com/u/28916798?v=4" alt="AssemblyScript logo" width="24" height="24"> | AssemblyScript | `assemblyscript` | `.as` | `0.27.32` | `code-languages/assemblyscript` |
|
|
218
284
|
| <img src="https://astro.build/assets/press/astro-icon-light.svg" alt="Astro logo" width="24" height="24"> | Astro | `astro` | `.astro` | `7.0.3` | `code-languages/astro` |
|
|
219
285
|
| <img src="https://dummyimage.com/32x32/0F766E/ffffff.png&text=Au" alt="Austral logo" width="24" height="24"> | Austral | `austral` | `.aum`, `.aui` | `0.1.0` | `code-languages/austral` |
|
|
220
286
|
| <img src="https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/icons/file_type_autohotkey.svg" alt="AutoHotkey logo" width="24" height="24"> | AutoHotkey | `autohotkey` | `.ahk`, `.ah2` | `2.0` | `code-languages/autohotkey` |
|
|
@@ -222,6 +288,7 @@ from its package subpath.
|
|
|
222
288
|
| <img src="https://cdn.simpleicons.org/gnu/A42E2B" alt="awk logo" width="24" height="24"> | awk | `awk` | `.awk` | `GNU Awk 5.4.0` | `code-languages/awk` |
|
|
223
289
|
| <img src="https://ballerina.io/images/ballerina-logo.svg" alt="Ballerina logo" width="24" height="24"> | Ballerina | `ballerina` | `.bal` | `2201.12.0` | `code-languages/ballerina` |
|
|
224
290
|
| <img src="https://bashlogo.com/img/symbol/svg/full_colored_dark.svg" alt="Bash logo" width="24" height="24"> | Bash | `bash` | `.sh`, `.bash`, `.bashrc`, `.bash_profile`, `.bash_login`, `.profile` | `5.3` | `code-languages/bash` |
|
|
291
|
+
| <img src="https://avatars.githubusercontent.com/u/5598624?v=4" alt="BASIC logo" width="24" height="24"> | BASIC | `basic` | `.bas`, `.bi`, `.bb` | `FreeBASIC 1.10.1` | `code-languages/basic` |
|
|
225
292
|
| <img src="https://icons.iconarchive.com/icons/simpleicons-team/simple/128/windowsterminal-icon.png" alt="Batch logo" width="24" height="24"> | Batch | `batch` | `.bat`, `.cmd` | `Windows Command Processor` | `code-languages/batch` |
|
|
226
293
|
| <img src="https://cdn.simpleicons.org/bazel/43A047" alt="Bazel logo" width="24" height="24"> | Bazel | `bazel` | `BUILD.bazel`, `WORKSPACE`, `WORKSPACE.bazel`, `MODULE.bazel` | `9.1.1` | `code-languages/bazel` |
|
|
227
294
|
| <img src="https://dummyimage.com/32x32/374151/ffffff.png&text=BC" alt="BCPL logo" width="24" height="24"> | BCPL | `bcpl` | `.bcpl` | `Cintsys BCPL` | `code-languages/bcpl` |
|
|
@@ -257,6 +324,7 @@ from its package subpath.
|
|
|
257
324
|
| <img src="https://cdn.simpleicons.org/d/BA595E" alt="D logo" width="24" height="24"> | D | `d` | `.d`, `.di` | `2.112.0` | `code-languages/d` |
|
|
258
325
|
| <img src="https://dafny.org/images/dafny-favicon.svg" alt="Dafny logo" width="24" height="24"> | Dafny | `dafny` | `.dfy` | `4.11.0` | `code-languages/dafny` |
|
|
259
326
|
| <img src="https://commons.wikimedia.org/wiki/Special:FilePath/Dart_programming_language_logo.svg" alt="Dart logo" width="24" height="24"> | Dart | `dart` | `.dart` | `3.12.2` | `code-languages/dart` |
|
|
327
|
+
| <img src="https://dummyimage.com/32x32/F2C811/000000.png&text=DAX" alt="DAX logo" width="24" height="24"> | DAX | `dax` | `.dax` | `DAX 2025` | `code-languages/dax` |
|
|
260
328
|
| <img src="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@master/icons/file_type_dhall.svg" alt="Dhall logo" width="24" height="24"> | Dhall | `dhall` | `.dhall` | `23.1.0` | `code-languages/dhall` |
|
|
261
329
|
| <img src="https://avatars.githubusercontent.com/u/20116735?v=4" alt="DITA logo" width="24" height="24"> | DITA | `dita` | `.dita`, `.ditamap`, `.ditaval` | `1.3` | `code-languages/dita` |
|
|
262
330
|
| <img src="https://www.docker.com/wp-content/uploads/2022/03/Moby-logo.png" alt="Dockerfile logo" width="24" height="24"> | Dockerfile | `dockerfile` | `Dockerfile`, `.dockerfile` | `1.10` | `code-languages/dockerfile` |
|
|
@@ -285,7 +353,9 @@ from its package subpath.
|
|
|
285
353
|
| <img src="https://cdn.simpleicons.org/godotengine/478CBF" alt="GDScript logo" width="24" height="24"> | GDScript | `gdscript` | `.gd` | `4.7` | `code-languages/gdscript` |
|
|
286
354
|
| <img src="https://dummyimage.com/32x32/7C3AED/ffffff.png&text=PO" alt="Gettext logo" width="24" height="24"> | Gettext | `gettext` | `.po`, `.pot` | `stable` | `code-languages/gettext` |
|
|
287
355
|
| <img src="https://cdn.simpleicons.org/git/F05032" alt="Git logo" width="24" height="24"> | Git | `git` | `.git`, `.gitignore`, `.gitattributes`, `.gitmodules`, `.gitkeep` | `2.54.0` | `code-languages/git` |
|
|
356
|
+
| <img src="https://dummyimage.com/32x32/2D5FA0/ffffff.png&text=AS" alt="AngelScript logo" width="24" height="24"> | AngelScript | `angelscript` | `.as`, `.angelscript` | `2.36.1` | `code-languages/angelscript` |
|
|
288
357
|
| <img src="https://cdn.simpleicons.org/gleam/FFAFF3" alt="Gleam logo" width="24" height="24"> | Gleam | `gleam` | `.gleam` | `1.17.0` | `code-languages/gleam` |
|
|
358
|
+
| <img src="https://cdn.simpleicons.org/gamemaker/000000" alt="GML logo" width="24" height="24"> | GML | `gml` | `.gml` | `2024.13.0` | `code-languages/gml` |
|
|
289
359
|
| <img src="https://cdn.simpleicons.org/opengl/5586A4" alt="GLSL logo" width="24" height="24"> | GLSL | `glsl` | `.glsl`, `.vert`, `.frag`, `.geom`, `.tesc`, `.tese`, `.comp`, `.vs`, `.fs` | `4.60` | `code-languages/glsl` |
|
|
290
360
|
| <img src="https://go.dev/blog/go-brand/Go-Logo/SVG/Go-Logo_Blue.svg" alt="Go logo" width="24" height="24"> | Go | `go` | `.go` | `1.26.4` | `code-languages/go` |
|
|
291
361
|
| <img src="https://cdn.simpleicons.org/gradle/02303A" alt="Gradle logo" width="24" height="24"> | Gradle | `gradle` | `.gradle`, `.gradle.kts` | `9.6.1` | `code-languages/gradle` |
|
|
@@ -307,6 +377,7 @@ from its package subpath.
|
|
|
307
377
|
| <img src="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@master/icons/file_type_idris.svg" alt="Idris logo" width="24" height="24"> | Idris | `idris` | `.idr`, `.lidr`, `.ipkg` | `0.8.0` | `code-languages/idris` |
|
|
308
378
|
| <img src="https://commons.wikimedia.org/wiki/Special:FilePath/Configure.svg" alt="INI logo" width="24" height="24"> | INI | `ini` | `.ini` | `Informal format` | `code-languages/ini` |
|
|
309
379
|
| <img src="https://use.ink/img/favicon.png" alt="Ink! logo" width="24" height="24"> | Ink! | `ink` | `.ink` | `Ink! 6` | `code-languages/ink` |
|
|
380
|
+
| <img src="https://avatars.githubusercontent.com/u/1987090?v=4" alt="Ink logo" width="24" height="24"> | Ink | `ink-narrative` | `.ink` | `1.2.0` | `code-languages/ink-narrative` |
|
|
310
381
|
| <img src="https://dummyimage.com/32x32/2563EB/ffffff.png&text=Io" alt="Io logo" width="24" height="24"> | Io | `io` | `.io` | `2017.09.06` | `code-languages/io` |
|
|
311
382
|
| <img src="https://isabelle.in.tum.de/img/favicon.ico" alt="Isabelle logo" width="24" height="24"> | Isabelle | `isabelle` | `.thy` | `Isabelle2025-2` | `code-languages/isabelle` |
|
|
312
383
|
| <img src="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@master/icons/file_type_janet.svg" alt="Janet logo" width="24" height="24"> | Janet | `janet` | `.janet`, `.jdn` | `1.41.2` | `code-languages/janet` |
|
|
@@ -350,12 +421,15 @@ from its package subpath.
|
|
|
350
421
|
| <img src="https://raw.githubusercontent.com/mesonbuild/meson/master/graphics/meson_logo.svg" alt="Meson logo" width="24" height="24"> | Meson | `meson` | `meson.build`, `meson_options.txt`, `meson.options`, `.wrap` | `1.11.1` | `code-languages/meson` |
|
|
351
422
|
| <img src="https://www.mercurylang.org/favicon.ico" alt="Mercury logo" width="24" height="24"> | Mercury | `mercury` | `.m` | `22.01.8` | `code-languages/mercury` |
|
|
352
423
|
| <img src="https://developer.apple.com/assets/elements/icons/metal/metal-256x256_2x.png" alt="Metal logo" width="24" height="24"> | Metal | `metal` | `.metal` | `Metal 4` | `code-languages/metal` |
|
|
424
|
+
| <img src="https://avatars.githubusercontent.com/u/3727943?v=4" alt="Modelica logo" width="24" height="24"> | Modelica | `modelica` | `.mo` | `3.6.1` | `code-languages/modelica` |
|
|
353
425
|
| <img src="https://avatars.githubusercontent.com/u/107116314?v=4" alt="Mojo logo" width="24" height="24"> | Mojo | `mojo` | `.mojo` | `0.26.1` | `code-languages/mojo` |
|
|
354
426
|
| <img src="https://dummyimage.com/32x32/2563EB/ffffff.png&text=M2" alt="Modula-2 logo" width="24" height="24"> | Modula-2 | `modula-2` | `.mod`, `.def` | `ISO/IEC 10514-1:1996` | `code-languages/modula-2` |
|
|
355
427
|
| <img src="https://avatars.githubusercontent.com/u/124476259?v=4" alt="MoonBit logo" width="24" height="24"> | MoonBit | `moonbit` | `.mbt` | `0.9.2` | `code-languages/moonbit` |
|
|
356
428
|
| <img src="https://avatars.githubusercontent.com/u/108696678?v=4" alt="Move logo" width="24" height="24"> | Move | `move` | `.move` | `2.0.0` | `code-languages/move` |
|
|
429
|
+
| <img src="https://avatars.githubusercontent.com/u/1506671?v=4" alt="MUMPS logo" width="24" height="24"> | MUMPS | `mumps` | `.mac`, `.int`, `.ro`, `.mro` | `InterSystems IRIS 2025.1` | `code-languages/mumps` |
|
|
357
430
|
| <img src="https://commons.wikimedia.org/wiki/Special:FilePath/Mustache-js-logo.png" alt="Mustache logo" width="24" height="24"> | Mustache | `mustache` | `.mustache`, `.mst` | `1.0` | `code-languages/mustache` |
|
|
358
431
|
| <img src="https://cdn.simpleicons.org/couchbase/EA2328" alt="N1QL logo" width="24" height="24"> | N1QL | `n1ql` | `.n1ql` | `stable` | `code-languages/n1ql` |
|
|
432
|
+
| <img src="https://avatars.githubusercontent.com/u/6698688?v=4" alt="Nextflow logo" width="24" height="24"> | Nextflow | `nextflow` | `.nf` | `24.10.4` | `code-languages/nextflow` |
|
|
359
433
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/c/c5/Nginx_logo.svg" alt="nginx logo" width="24" height="24"> | nginx | `nginx` | `nginx.conf`, `.nginx`, `.conf` | `1.30.3` | `code-languages/nginx` |
|
|
360
434
|
| <img src="https://avatars.githubusercontent.com/u/83021462?v=4" alt="Nickel logo" width="24" height="24"> | Nickel | `nickel` | `.ncl` | `1.17.0` | `code-languages/nickel` |
|
|
361
435
|
| <img src="https://cdn.simpleicons.org/nim/FFE953" alt="Nim logo" width="24" height="24"> | Nim | `nim` | `.nim`, `.nims`, `.nimble` | `2.2.10` | `code-languages/nim` |
|
|
@@ -364,10 +438,12 @@ from its package subpath.
|
|
|
364
438
|
| <img src="https://cdn.simpleicons.org/nushell/3AA675" alt="Nushell logo" width="24" height="24"> | Nushell | `nushell` | `.nu` | `0.113.1` | `code-languages/nushell` |
|
|
365
439
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/1/1b/Apple_logo_grey.svg" alt="Objective-C logo" width="24" height="24"> | Objective-C | `objective-c` | `.m`, `.mm` | `2.0` | `code-languages/objective-c` |
|
|
366
440
|
| <img src="https://cdn.simpleicons.org/ocaml/EC6813" alt="OCaml logo" width="24" height="24"> | OCaml | `ocaml` | `.ml`, `.mli`, `.mll`, `.mly`, `.mlt`, `.eliom`, `.eliomi` | `5.6.0` | `code-languages/ocaml` |
|
|
441
|
+
| <img src="https://upload.wikimedia.org/wikipedia/commons/6/6a/Gnu-octave-logo.svg" alt="Octave logo" width="24" height="24"> | Octave | `octave` | `.m`, `.octave` | `9.3.0` | `code-languages/octave` |
|
|
367
442
|
| <img src="https://dummyimage.com/32x32/0F766E/ffffff.png&text=Ob" alt="Oberon logo" width="24" height="24"> | Oberon | `oberon` | `.ob`, `.mod` | `Oberon-2` | `code-languages/oberon` |
|
|
368
443
|
| <img src="https://avatars.githubusercontent.com/u/12533910?v=4" alt="Odin logo" width="24" height="24"> | Odin | `odin` | `.odin` | `dev-2026-02` | `code-languages/odin` |
|
|
369
444
|
| <img src="https://cdn.simpleicons.org/openapiinitiative/6BA539" alt="OpenAPI logo" width="24" height="24"> | OpenAPI | `openapi` | `.openapi.json`, `.openapi.yaml`, `.openapi.yml` | `3.2.0` | `code-languages/openapi` |
|
|
370
445
|
| <img src="https://cdn.simpleicons.org/khronosgroup/CC3333" alt="OpenCL C logo" width="24" height="24"> | OpenCL C | `opencl` | `.cl`, `.clh` | `OpenCL C 3.0` | `code-languages/opencl` |
|
|
446
|
+
| <img src="https://avatars.githubusercontent.com/u/1864477?v=4" alt="OpenSCAD logo" width="24" height="24"> | OpenSCAD | `openscad` | `.scad` | `2021.01` | `code-languages/openscad` |
|
|
371
447
|
| <img src="https://orgmode.org/resources/img/org-mode-unicorn.svg" alt="Org-mode logo" width="24" height="24"> | Org-mode | `org` | `.org` | `9.8` | `code-languages/org` |
|
|
372
448
|
| <img src="https://cdn.simpleicons.org/lazarus/000000" alt="Pascal logo" width="24" height="24"> | Pascal | `pascal` | `.pas`, `.pp`, `.inc`, `.lpr`, `.dpr`, `.dfm` | `3.2.2` | `code-languages/pascal` |
|
|
373
449
|
| <img src="https://cdn.simpleicons.org/perl/39457E" alt="Perl logo" width="24" height="24"> | Perl | `perl` | `.pl`, `.pm`, `.pod`, `.t`, `.psgi` | `5.42.2` | `code-languages/perl` |
|
|
@@ -380,7 +456,10 @@ from its package subpath.
|
|
|
380
456
|
| <img src="https://github.com/oracle.png" alt="Oracle PL/SQL logo" width="24" height="24"> | Oracle PL/SQL | `plsql` | `.pls`, `.pks`, `.pkb`, `.plsql` | `Oracle Database 26ai` | `code-languages/plsql` |
|
|
381
457
|
| <img src="https://cdn.simpleicons.org/perl/39457E" alt="Plain Old Documentation logo" width="24" height="24"> | Plain Old Documentation | `pod` | `.pod` | `Perl 5.42.2` | `code-languages/pod` |
|
|
382
458
|
| <img src="https://avatars.githubusercontent.com/u/14593805?v=4" alt="Pony logo" width="24" height="24"> | Pony | `pony` | `.pony` | `0.61.1` | `code-languages/pony` |
|
|
459
|
+
| <img src="https://dummyimage.com/32x32/EC1C24/ffffff.png&text=PS" alt="PostScript logo" width="24" height="24"> | PostScript | `postscript` | `.ps`, `.eps` | `PostScript 3` | `code-languages/postscript` |
|
|
460
|
+
| <img src="https://dummyimage.com/32x32/F2C811/000000.png&text=PQ" alt="Power Query M logo" width="24" height="24"> | Power Query M | `powerquery` | `.pq`, `.pqm` | `Power Query M 2025` | `code-languages/powerquery` |
|
|
383
461
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/2/2f/PowerShell_5.0_icon.png" alt="PowerShell logo" width="24" height="24"> | PowerShell | `powershell` | `.ps1`, `.psm1`, `.psd1`, `.ps1xml` | `7.6.3` | `code-languages/powershell` |
|
|
462
|
+
| <img src="https://cdn.simpleicons.org/processingfoundation/006699" alt="Processing logo" width="24" height="24"> | Processing | `processing` | `.pde` | `4.4.5` | `code-languages/processing` |
|
|
384
463
|
| <img src="https://www.swi-prolog.org/icons/swipl.png" alt="Prolog logo" width="24" height="24"> | Prolog | `prolog` | `.pl`, `.pro`, `.prolog`, `.P` | `SWI-Prolog 10.0` | `code-languages/prolog` |
|
|
385
464
|
| <img src="https://cdn.simpleicons.org/prometheus/E6522C" alt="PromQL logo" width="24" height="24"> | PromQL | `promql` | `.promql` | `Prometheus 3.x` | `code-languages/promql` |
|
|
386
465
|
| <img src="https://cdn.simpleicons.org/google/4285F4" alt="Protocol Buffers logo" width="24" height="24"> | Protocol Buffers | `protobuf` | `.proto` | `35.1` | `code-languages/protobuf` |
|
|
@@ -402,6 +481,7 @@ from its package subpath.
|
|
|
402
481
|
| <img src="https://cdn.simpleicons.org/rescript/E6484A" alt="ReScript logo" width="24" height="24"> | ReScript | `rescript` | `.res`, `.resi` | `12.0.0` | `code-languages/rescript` |
|
|
403
482
|
| <img src="https://cdn.simpleicons.org/readthedocs/8CA1AF" alt="reStructuredText logo" width="24" height="24"> | reStructuredText | `restructuredtext` | `.rst`, `.rest` | `Docutils 0.22.2` | `code-languages/restructuredtext` |
|
|
404
483
|
| <img src="https://avatars.githubusercontent.com/u/96867701?v=4" alt="Roc logo" width="24" height="24"> | Roc | `roc` | `.roc` | `development snapshot` | `code-languages/roc` |
|
|
484
|
+
| <img src="https://avatars.githubusercontent.com/u/733939?v=4" alt="RPG logo" width="24" height="24"> | RPG | `rpg` | `.rpg`, `.rpgle`, `.sqlrpgle`, `.clle`, `.dspf` | `RPG IV Free-Form (IBM i 7.5)` | `code-languages/rpg` |
|
|
405
485
|
| <img src="https://www.ruby-lang.org/images/header-ruby-logo.png" alt="Ruby logo" width="24" height="24"> | Ruby | `ruby` | `.rb`, `.rbw`, `.rake`, `.gemspec`, `Gemfile`, `Rakefile`, `config.ru` | `4.0.5` | `code-languages/ruby` |
|
|
406
486
|
| <img src="https://www.rust-lang.org/logos/rust-logo-512x512.png" alt="Rust logo" width="24" height="24"> | Rust | `rust` | `.rs` | `1.96.0` | `code-languages/rust` |
|
|
407
487
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/1/10/SAS_logo_horiz.svg" alt="SAS logo" width="24" height="24"> | SAS | `sas` | `.sas` | `SAS 9.4` | `code-languages/sas` |
|
|
@@ -412,13 +492,16 @@ from its package subpath.
|
|
|
412
492
|
| <img src="https://dummyimage.com/32x32/2563EB/ffffff.png&text=Si" alt="Simula logo" width="24" height="24"> | Simula | `simula` | `.sim`, `.simula` | `Simula 67` | `code-languages/simula` |
|
|
413
493
|
| <img src="https://commons.wikimedia.org/wiki/Special:FilePath/Smalltalk_Balloon.svg" alt="Smalltalk logo" width="24" height="24"> | Smalltalk | `smalltalk` | `.st` | `ANSI INCITS 319-1998` | `code-languages/smalltalk` |
|
|
414
494
|
| <img src="https://www.smarty.net/images/logo_print.gif" alt="Smarty logo" width="24" height="24"> | Smarty | `smarty` | `.tpl`, `.smarty` | `5.5.1` | `code-languages/smarty` |
|
|
495
|
+
| <img src="https://avatars.githubusercontent.com/u/33450111?v=4" alt="Snakemake logo" width="24" height="24"> | Snakemake | `snakemake` | `.smk`, `Snakefile` | `8.25.0` | `code-languages/snakemake` |
|
|
415
496
|
| <img src="https://dummyimage.com/32x32/7C2D12/ffffff.png&text=SN" alt="SNOBOL logo" width="24" height="24"> | SNOBOL | `snobol` | `.sno`, `.snobol` | `SNOBOL4` | `code-languages/snobol` |
|
|
416
497
|
| <img src="https://cdn.simpleicons.org/solidity/363636" alt="Solidity logo" width="24" height="24"> | Solidity | `solidity` | `.sol` | `0.8.35` | `code-languages/solidity` |
|
|
417
498
|
| <img src="https://commons.wikimedia.org/wiki/Special:FilePath/Salesforce.com_logo.svg" alt="SOQL logo" width="24" height="24"> | SOQL | `soql` | `.soql` | `stable` | `code-languages/soql` |
|
|
418
499
|
| <img src="https://www.w3.org/RDF/icons/rdf_flyer.svg" alt="SPARQL logo" width="24" height="24"> | SPARQL | `sparql` | `.sparql`, `.rq` | `1.1` | `code-languages/sparql` |
|
|
419
500
|
| <img src="https://dummyimage.com/32x32/DC2626/ffffff.png&text=SP" alt="SPARK logo" width="24" height="24"> | SPARK | `spark` | `.spark`, `.adb`, `.ads` | `SPARK Community 2021` | `code-languages/spark` |
|
|
420
501
|
| <img src="https://cdn.simpleicons.org/splunk/000000" alt="SPL logo" width="24" height="24"> | SPL | `spl` | `.spl` | `stable` | `code-languages/spl` |
|
|
502
|
+
| <img src="https://dummyimage.com/32x32/052FAD/ffffff.png&text=SPSS" alt="SPSS logo" width="24" height="24"> | SPSS | `spss` | `.sps`, `.spss` | `29.0` | `code-languages/spss` |
|
|
421
503
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/8/87/Sql_data_base_with_logo.png" alt="SQL logo" width="24" height="24"> | SQL | `sql` | `.sql` | `SQL:2023` | `code-languages/sql` |
|
|
504
|
+
| <img src="https://dummyimage.com/32x32/CC4A00/ffffff.png&text=SQ" alt="Squirrel logo" width="24" height="24"> | Squirrel | `squirrel` | `.nut` | `3.2` | `code-languages/squirrel` |
|
|
422
505
|
| <img src="https://avatars.githubusercontent.com/u/62883579?v=4" alt="Standard ML logo" width="24" height="24"> | Standard ML | `standard-ml` | `.sml`, `.sig`, `.fun` | `The Definition 1997` | `code-languages/standard-ml` |
|
|
423
506
|
| <img src="https://cdn.simpleicons.org/bazel/43A047" alt="Starlark logo" width="24" height="24"> | Starlark | `starlark` | `.bzl`, `.star`, `.sky` | `Bazel Starlark` | `code-languages/starlark` |
|
|
424
507
|
| <img src="https://www.stata.com/includes/images/stata-logo-blue.svg" alt="Stata logo" width="24" height="24"> | Stata | `stata` | `.do`, `.ado`, `.mata` | `19` | `code-languages/stata` |
|
|
@@ -436,6 +519,7 @@ from its package subpath.
|
|
|
436
519
|
| <img src="https://cdn.simpleicons.org/toml/9C4221" alt="TOML logo" width="24" height="24"> | TOML | `toml` | `.toml` | `1.1.0` | `code-languages/toml` |
|
|
437
520
|
| <img src="https://cdn.simpleicons.org/gnu/A42E2B" alt="Troff/Groff logo" width="24" height="24"> | Troff/Groff | `troff` | `.roff`, `.troff`, `.man`, `.me`, `.ms` | `GNU groff 1.24.1` | `code-languages/troff` |
|
|
438
521
|
| <img src="https://icons.iconarchive.com/icons/simpleicons-team/simple/128/microsoft-sqlserver-icon.png" alt="T-SQL logo" width="24" height="24"> | T-SQL | `tsql` | `.sql`, `.tsql` | `SQL Server 2025 (17.x)` | `code-languages/tsql` |
|
|
522
|
+
| <img src="https://avatars.githubusercontent.com/u/2966890?v=4" alt="Twee/Twine logo" width="24" height="24"> | Twee/Twine | `twee` | `.tw`, `.twee`, `.tw2` | `2.10.0` | `code-languages/twee` |
|
|
439
523
|
| <img src="https://twig.symfony.com/images/logo.png" alt="Twig logo" width="24" height="24"> | Twig | `twig` | `.twig` | `3.27.1` | `code-languages/twig` |
|
|
440
524
|
| <img src="https://www.typescriptlang.org/icons/icon-512x512.png" alt="TypeScript logo" width="24" height="24"> | TypeScript | `typescript` | `.ts`, `.tsx`, `.mts`, `.cts` | `6.0` | `code-languages/typescript` |
|
|
441
525
|
| <img src="https://cdn.simpleicons.org/typst/239DAD" alt="Typst logo" width="24" height="24"> | Typst | `typst` | `.typ` | `0.15.0` | `code-languages/typst` |
|
|
@@ -443,6 +527,7 @@ from its package subpath.
|
|
|
443
527
|
| <img src="https://cdn.simpleicons.org/v/5D87BF" alt="V logo" width="24" height="24"> | V | `v` | `.v`, `.vsh` | `weekly.2025.49` | `code-languages/v` |
|
|
444
528
|
| <img src="https://cdn.simpleicons.org/gnome/4A86CF" alt="Vala logo" width="24" height="24"> | Vala | `vala` | `.vala`, `.vapi` | `0.56.18` | `code-languages/vala` |
|
|
445
529
|
| <img src="https://dummyimage.com/32x32/059669/ffffff.png&text=Va" alt="Vale logo" width="24" height="24"> | Vale | `vale` | `.vale` | `experimental` | `code-languages/vale` |
|
|
530
|
+
| <img src="https://dummyimage.com/32x32/217346/ffffff.png&text=VBA" alt="VBA logo" width="24" height="24"> | VBA | `vba` | `.bas`, `.cls`, `.frm`, `.vba` | `VBA 7.1` | `code-languages/vba` |
|
|
446
531
|
| <img src="https://velocity.apache.org/engine/devel/images/velocity-logo.png" alt="Apache Velocity logo" width="24" height="24"> | Apache Velocity | `velocity` | `.vm`, `.vtl` | `2.4.1` | `code-languages/velocity` |
|
|
447
532
|
| <img src="https://cdn.jsdelivr.net/gh/vscode-icons/vscode-icons@master/icons/file_type_verilog.svg" alt="Verilog/SystemVerilog logo" width="24" height="24"> | Verilog/SystemVerilog | `verilog` | `.v`, `.vh`, `.sv`, `.svh` | `IEEE 1800-2023` | `code-languages/verilog` |
|
|
448
533
|
| <img src="https://dummyimage.com/32x32/111827/ffffff.png&text=Ve" alt="Verse logo" width="24" height="24"> | Verse | `verse` | `.verse` | `UEFN Verse` | `code-languages/verse` |
|
|
@@ -451,10 +536,12 @@ from its package subpath.
|
|
|
451
536
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/9/95/Vue.js_Logo_2.svg" alt="Vue logo" width="24" height="24"> | Vue | `vue` | `.vue` | `3.5.39` | `code-languages/vue` |
|
|
452
537
|
| <img src="https://avatars.githubusercontent.com/u/37288461?v=4" alt="Vyper logo" width="24" height="24"> | Vyper | `vyper` | `.vy` | `0.4.3` | `code-languages/vyper` |
|
|
453
538
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/1/1f/WebAssembly_Logo.svg" alt="WebAssembly logo" width="24" height="24"> | WebAssembly | `webassembly` | `.wasm`, `.wat` | `3.0` | `code-languages/webassembly` |
|
|
539
|
+
| <img src="https://avatars.githubusercontent.com/u/23492081?v=4" alt="WDL logo" width="24" height="24"> | WDL | `wdl` | `.wdl` | `1.2.0` | `code-languages/wdl` |
|
|
454
540
|
| <img src="https://cdn.simpleicons.org/webgpu/005A9C" alt="WGSL logo" width="24" height="24"> | WGSL | `wgsl` | `.wgsl` | `Candidate Recommendation Draft 2026-05-07` | `code-languages/wgsl` |
|
|
455
541
|
| <img src="https://avatars.githubusercontent.com/u/8763410?v=4" alt="Wren logo" width="24" height="24"> | Wren | `wren` | `.wren` | `0.4.0` | `code-languages/wren` |
|
|
456
542
|
| <img src="https://cdn.simpleicons.org/dotnet/512BD4" alt="XAML logo" width="24" height="24"> | XAML | `xaml` | `.xaml`, `.baml` | `Platform-specific` | `code-languages/xaml` |
|
|
457
543
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/XML.svg" alt="XML logo" width="24" height="24"> | XML | `xml` | `.xml`, `.xsd`, `.xsl`, `.xslt` | `XML 1.0 Fifth Edition` | `code-languages/xml` |
|
|
544
|
+
| <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/XML.svg" alt="XPath logo" width="24" height="24"> | XPath | `xpath` | `.xpath`, `.xpth` | `XPath 3.1` | `code-languages/xpath` |
|
|
458
545
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/XML.svg" alt="XQuery logo" width="24" height="24"> | XQuery | `xquery` | `.xq`, `.xql`, `.xqm`, `.xquery`, `.xqy` | `XQuery 3.1` | `code-languages/xquery` |
|
|
459
546
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/6/68/XML.svg" alt="XSLT logo" width="24" height="24"> | XSLT | `xslt` | `.xsl`, `.xslt` | `XSLT 3.0` | `code-languages/xslt` |
|
|
460
547
|
| <img src="https://upload.wikimedia.org/wikipedia/commons/5/5a/Official_YAML_Logo.svg" alt="YAML logo" width="24" height="24"> | YAML | `yaml` | `.yaml`, `.yml` | `1.2.2` | `code-languages/yaml` |
|
|
@@ -476,12 +563,15 @@ Common scripts:
|
|
|
476
563
|
|
|
477
564
|
| Script | Purpose |
|
|
478
565
|
|---|---|
|
|
479
|
-
| `npm run
|
|
566
|
+
| `npm run format` | Format and auto-fix with Biome |
|
|
567
|
+
| `npm run format:check` | Check formatting with Biome (read-only) |
|
|
568
|
+
| `npm run lint` | Run ESLint |
|
|
569
|
+
| `npm run lint:fix` | Run ESLint with auto-fix |
|
|
480
570
|
| `npm run typecheck` | Run TypeScript without emitting files |
|
|
481
571
|
| `npm test` | Run Vitest |
|
|
482
572
|
| `npm run bench` | Run manual performance benchmarks |
|
|
483
573
|
| `npm run build` | Build ESM, CommonJS, and declaration files |
|
|
484
|
-
| `npm run check` | Run lint, typecheck, and tests |
|
|
574
|
+
| `npm run check` | Run format:check, lint, typecheck, and tests |
|
|
485
575
|
| `npm run check:language-versions -- --language typescript` | Check release metadata for one language |
|
|
486
576
|
| `npm run website:prepare` | Build the static website data, unit test summary, and benchmark summary |
|
|
487
577
|
| `npm run website:serve` | Preview the static website locally |
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { L as LanguageSlug } from './registry-p4uQJ2gP.cjs';
|
|
2
|
+
import { d as Locale, e as LocalizedLanguage } from './types-B0_wjl_Q.cjs';
|
|
3
|
+
|
|
4
|
+
interface PackageManagerInfo {
|
|
5
|
+
slug: string;
|
|
6
|
+
name: string;
|
|
7
|
+
website: string;
|
|
8
|
+
logo: string;
|
|
9
|
+
color: `#${string}`;
|
|
10
|
+
aliases: string[];
|
|
11
|
+
}
|
|
12
|
+
declare function getPackageManagers(): PackageManagerInfo[];
|
|
13
|
+
|
|
14
|
+
interface RuntimeInfo {
|
|
15
|
+
slug: string;
|
|
16
|
+
name: string;
|
|
17
|
+
website: string;
|
|
18
|
+
logo: string;
|
|
19
|
+
color: `#${string}`;
|
|
20
|
+
aliases: string[];
|
|
21
|
+
packageManagers: string[];
|
|
22
|
+
}
|
|
23
|
+
declare function getRuntimes(): RuntimeInfo[];
|
|
24
|
+
|
|
25
|
+
type RuntimeLanguageSlug = LanguageSlug | (string & {});
|
|
26
|
+
interface LanguageRequest {
|
|
27
|
+
/**
|
|
28
|
+
* Sets the requested locale for this language lookup.
|
|
29
|
+
*
|
|
30
|
+
* Regional locales such as `es-PE` fall back to their base locale before English.
|
|
31
|
+
*/
|
|
32
|
+
locale(locale: Locale): LanguageRequest;
|
|
33
|
+
/**
|
|
34
|
+
* Reads a language from the in-memory catalog and localizes it.
|
|
35
|
+
*
|
|
36
|
+
* Returns `undefined` when the slug does not exist.
|
|
37
|
+
*/
|
|
38
|
+
get(): LocalizedLanguage | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Dynamically imports a language module and localizes it.
|
|
41
|
+
*
|
|
42
|
+
* Returns `undefined` when the slug does not exist.
|
|
43
|
+
*/
|
|
44
|
+
load(): Promise<LocalizedLanguage | undefined>;
|
|
45
|
+
}
|
|
46
|
+
interface RuntimeRequest {
|
|
47
|
+
/** Metadata about the matched runtime platform. Returns undefined for unknown values. */
|
|
48
|
+
info(): RuntimeInfo | undefined;
|
|
49
|
+
/** Languages that run on or target this platform. */
|
|
50
|
+
langs(): LanguageCollectionRequest;
|
|
51
|
+
}
|
|
52
|
+
interface PackageManagerRequest {
|
|
53
|
+
/** Metadata about the matched package manager. Returns undefined for unknown values. */
|
|
54
|
+
info(): PackageManagerInfo | undefined;
|
|
55
|
+
/** Languages that use this package manager. */
|
|
56
|
+
langs(): LanguageCollectionRequest;
|
|
57
|
+
/** Runtime platforms that include this package manager. */
|
|
58
|
+
runtimes(): RuntimeInfo[];
|
|
59
|
+
}
|
|
60
|
+
interface LanguageCollectionRequest {
|
|
61
|
+
/**
|
|
62
|
+
* Sets the requested locale for every language returned by this collection lookup.
|
|
63
|
+
*/
|
|
64
|
+
locale(locale: Locale): LanguageCollectionRequest;
|
|
65
|
+
/**
|
|
66
|
+
* Reads every language from the in-memory catalog and localizes the result.
|
|
67
|
+
*/
|
|
68
|
+
get(): LocalizedLanguage[];
|
|
69
|
+
/**
|
|
70
|
+
* Dynamically imports every language module and localizes the result.
|
|
71
|
+
*/
|
|
72
|
+
load(): Promise<LocalizedLanguage[]>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Fluent API for localized language metadata, dynamic loading, and filename detection.
|
|
76
|
+
*
|
|
77
|
+
* Use `.get()` for synchronous catalog access or `.load()` to dynamically import only the
|
|
78
|
+
* requested language modules.
|
|
79
|
+
*/
|
|
80
|
+
declare const api: {
|
|
81
|
+
/**
|
|
82
|
+
* Selects a language by slug.
|
|
83
|
+
*
|
|
84
|
+
* Input is normalized to the package slug format before lookup.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* api.language("astro").locale("es-PE").get();
|
|
88
|
+
*/
|
|
89
|
+
language(slug: RuntimeLanguageSlug): LanguageRequest;
|
|
90
|
+
/**
|
|
91
|
+
* Selects every language in the catalog.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* await api.languages().locale("en-US").load();
|
|
95
|
+
*/
|
|
96
|
+
languages(): LanguageCollectionRequest;
|
|
97
|
+
/**
|
|
98
|
+
* Detects the first matching language for a filename or path.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* api.detect("src/App.vue").locale("es").get();
|
|
102
|
+
*/
|
|
103
|
+
detect(filename: string): LanguageRequest;
|
|
104
|
+
/**
|
|
105
|
+
* Selects every language that runs on or targets the given platform or runtime.
|
|
106
|
+
*
|
|
107
|
+
* Accepts common aliases: 'node', 'nodejs', 'bun', 'deno', '.net', 'jvm', 'android', 'ios', etc.
|
|
108
|
+
* Searches both `tooling.runtimes` and `tooling.ecosystems`.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* api.runtime('node').langs().locale('es').get();
|
|
112
|
+
* api.runtime('.net').info();
|
|
113
|
+
*/
|
|
114
|
+
runtime(value: string): RuntimeRequest;
|
|
115
|
+
/**
|
|
116
|
+
* Selects every language that uses the given package manager.
|
|
117
|
+
*
|
|
118
|
+
* Accepts common aliases: 'npm', 'pnpm', 'yarn', 'pip', 'cargo', 'maven', 'nuget', etc.
|
|
119
|
+
* Searches `tooling.packageManagers`.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* api.packageManager('npm').langs().locale('es').get();
|
|
123
|
+
* api.packageManager('npm').runtimes();
|
|
124
|
+
*/
|
|
125
|
+
packageManager(value: string): PackageManagerRequest;
|
|
126
|
+
/**
|
|
127
|
+
* Detects every matching language for a filename or path.
|
|
128
|
+
*
|
|
129
|
+
* Useful for ambiguous extensions such as `.h`, which can match C and C++.
|
|
130
|
+
*/
|
|
131
|
+
detectAll(filename: string): LanguageCollectionRequest;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export { type LanguageCollectionRequest as L, type PackageManagerInfo as P, type RuntimeInfo as R, api as a, getRuntimes as b, type LanguageRequest as c, type PackageManagerRequest as d, type RuntimeRequest as e, getPackageManagers as g };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { L as LanguageSlug } from './registry-p4uQJ2gP.js';
|
|
2
|
+
import { d as Locale, e as LocalizedLanguage } from './types-B0_wjl_Q.js';
|
|
3
|
+
|
|
4
|
+
interface PackageManagerInfo {
|
|
5
|
+
slug: string;
|
|
6
|
+
name: string;
|
|
7
|
+
website: string;
|
|
8
|
+
logo: string;
|
|
9
|
+
color: `#${string}`;
|
|
10
|
+
aliases: string[];
|
|
11
|
+
}
|
|
12
|
+
declare function getPackageManagers(): PackageManagerInfo[];
|
|
13
|
+
|
|
14
|
+
interface RuntimeInfo {
|
|
15
|
+
slug: string;
|
|
16
|
+
name: string;
|
|
17
|
+
website: string;
|
|
18
|
+
logo: string;
|
|
19
|
+
color: `#${string}`;
|
|
20
|
+
aliases: string[];
|
|
21
|
+
packageManagers: string[];
|
|
22
|
+
}
|
|
23
|
+
declare function getRuntimes(): RuntimeInfo[];
|
|
24
|
+
|
|
25
|
+
type RuntimeLanguageSlug = LanguageSlug | (string & {});
|
|
26
|
+
interface LanguageRequest {
|
|
27
|
+
/**
|
|
28
|
+
* Sets the requested locale for this language lookup.
|
|
29
|
+
*
|
|
30
|
+
* Regional locales such as `es-PE` fall back to their base locale before English.
|
|
31
|
+
*/
|
|
32
|
+
locale(locale: Locale): LanguageRequest;
|
|
33
|
+
/**
|
|
34
|
+
* Reads a language from the in-memory catalog and localizes it.
|
|
35
|
+
*
|
|
36
|
+
* Returns `undefined` when the slug does not exist.
|
|
37
|
+
*/
|
|
38
|
+
get(): LocalizedLanguage | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Dynamically imports a language module and localizes it.
|
|
41
|
+
*
|
|
42
|
+
* Returns `undefined` when the slug does not exist.
|
|
43
|
+
*/
|
|
44
|
+
load(): Promise<LocalizedLanguage | undefined>;
|
|
45
|
+
}
|
|
46
|
+
interface RuntimeRequest {
|
|
47
|
+
/** Metadata about the matched runtime platform. Returns undefined for unknown values. */
|
|
48
|
+
info(): RuntimeInfo | undefined;
|
|
49
|
+
/** Languages that run on or target this platform. */
|
|
50
|
+
langs(): LanguageCollectionRequest;
|
|
51
|
+
}
|
|
52
|
+
interface PackageManagerRequest {
|
|
53
|
+
/** Metadata about the matched package manager. Returns undefined for unknown values. */
|
|
54
|
+
info(): PackageManagerInfo | undefined;
|
|
55
|
+
/** Languages that use this package manager. */
|
|
56
|
+
langs(): LanguageCollectionRequest;
|
|
57
|
+
/** Runtime platforms that include this package manager. */
|
|
58
|
+
runtimes(): RuntimeInfo[];
|
|
59
|
+
}
|
|
60
|
+
interface LanguageCollectionRequest {
|
|
61
|
+
/**
|
|
62
|
+
* Sets the requested locale for every language returned by this collection lookup.
|
|
63
|
+
*/
|
|
64
|
+
locale(locale: Locale): LanguageCollectionRequest;
|
|
65
|
+
/**
|
|
66
|
+
* Reads every language from the in-memory catalog and localizes the result.
|
|
67
|
+
*/
|
|
68
|
+
get(): LocalizedLanguage[];
|
|
69
|
+
/**
|
|
70
|
+
* Dynamically imports every language module and localizes the result.
|
|
71
|
+
*/
|
|
72
|
+
load(): Promise<LocalizedLanguage[]>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Fluent API for localized language metadata, dynamic loading, and filename detection.
|
|
76
|
+
*
|
|
77
|
+
* Use `.get()` for synchronous catalog access or `.load()` to dynamically import only the
|
|
78
|
+
* requested language modules.
|
|
79
|
+
*/
|
|
80
|
+
declare const api: {
|
|
81
|
+
/**
|
|
82
|
+
* Selects a language by slug.
|
|
83
|
+
*
|
|
84
|
+
* Input is normalized to the package slug format before lookup.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* api.language("astro").locale("es-PE").get();
|
|
88
|
+
*/
|
|
89
|
+
language(slug: RuntimeLanguageSlug): LanguageRequest;
|
|
90
|
+
/**
|
|
91
|
+
* Selects every language in the catalog.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* await api.languages().locale("en-US").load();
|
|
95
|
+
*/
|
|
96
|
+
languages(): LanguageCollectionRequest;
|
|
97
|
+
/**
|
|
98
|
+
* Detects the first matching language for a filename or path.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* api.detect("src/App.vue").locale("es").get();
|
|
102
|
+
*/
|
|
103
|
+
detect(filename: string): LanguageRequest;
|
|
104
|
+
/**
|
|
105
|
+
* Selects every language that runs on or targets the given platform or runtime.
|
|
106
|
+
*
|
|
107
|
+
* Accepts common aliases: 'node', 'nodejs', 'bun', 'deno', '.net', 'jvm', 'android', 'ios', etc.
|
|
108
|
+
* Searches both `tooling.runtimes` and `tooling.ecosystems`.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* api.runtime('node').langs().locale('es').get();
|
|
112
|
+
* api.runtime('.net').info();
|
|
113
|
+
*/
|
|
114
|
+
runtime(value: string): RuntimeRequest;
|
|
115
|
+
/**
|
|
116
|
+
* Selects every language that uses the given package manager.
|
|
117
|
+
*
|
|
118
|
+
* Accepts common aliases: 'npm', 'pnpm', 'yarn', 'pip', 'cargo', 'maven', 'nuget', etc.
|
|
119
|
+
* Searches `tooling.packageManagers`.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* api.packageManager('npm').langs().locale('es').get();
|
|
123
|
+
* api.packageManager('npm').runtimes();
|
|
124
|
+
*/
|
|
125
|
+
packageManager(value: string): PackageManagerRequest;
|
|
126
|
+
/**
|
|
127
|
+
* Detects every matching language for a filename or path.
|
|
128
|
+
*
|
|
129
|
+
* Useful for ambiguous extensions such as `.h`, which can match C and C++.
|
|
130
|
+
*/
|
|
131
|
+
detectAll(filename: string): LanguageCollectionRequest;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export { type LanguageCollectionRequest as L, type PackageManagerInfo as P, type RuntimeInfo as R, api as a, getRuntimes as b, type LanguageRequest as c, type PackageManagerRequest as d, type RuntimeRequest as e, getPackageManagers as g };
|