JavaScript and TypeScript

Run JavaScript and TypeScript source with Elide

Run source files directly:

elide app.js
elide run app.ts

Elide recognizes .js, .mjs, .cjs, .jsx, .ts, .mts, .cts, and .tsx. TypeScript annotations are stripped before execution, so a separate transpile step is unnecessary for supported syntax.

const greeting: string = "Hello from TypeScript";
console.log(greeting);
elide run greeting.ts

JSX and TSX syntax is transformed automatically, but Elide does not provide a frontend framework or DOM. Your application must supply the runtime libraries it uses.

See API Overview for implemented runtime APIs and the Compatibility Matrix for measured coverage.