Live execution
Type a filename or pick a language slug.
Detect filenames, inspect versions, switch locale, and verify the package health from the same static site generated by the library.
Live execution
Type a filename or pick a language slug.
Search the generated catalog by name, slug, extension, runtime, ecosystem, or package manager.
Runtime platforms and ecosystems supported across the catalog. Click a card to filter the language list.
Package managers referenced in language tooling metadata. Click a card to filter the language list.
Programming paradigms across the catalog. Click a card to filter the language list.
Technology ecosystems referenced in language tooling metadata. Click a card to filter the language list.
These snapshots are produced by the website preparation script, so the page reflects the same test and benchmark commands used locally.
Unit tests
loadingBenchmarks
loadingUse the full catalog synchronously or load language modules on demand.
Detect and localize
import { api } from "code-languages";
const language = api
.detect("src/App.vue")
.locale("es-PE")
.get();
Dynamic language import
import { api } from "code-languages";
const astro = await api
.language("astro")
.locale("en-US")
.load();
Runtime platform query
import { api } from "code-languages";
const info = api.runtime("node").info();
// { name: "Node.js", slug: "node", ... }
const langs = api.runtime("jvm")
.langs()
.locale("es")
.get();
Package manager query
import { api } from "code-languages";
const info = api.packageManager("cargo").info();
const langs = api.packageManager("npm").langs().get();
// Runtimes that include this package manager
const runtimes = api.packageManager("pip").runtimes();