tsx

A command-line tool that runs TypeScript files directly in Node.js by compiling them on the fly with esbuild.

In more detail

Like Bun, tsx skips type checking for speed, so it is a development convenience rather than a replacement for tsc. Not to be confused with the .tsx file extension used for TypeScript files that contain JSX markup.

Example

npx tsx src/index.ts

Related terms

Taught in

References