tsx - run typescript code
last updated: Nov 21, 2023
https://github.com/privatenumber/tsx
Features
- Blazing fast (ed: 🙄) on-demand TypeScript & ESM compilation
- Works in both CommonJS and ESM packages
- Supports next-gen TypeScript extensions (
.cts
&.mts
)- Hides experimental feature warnings
- TypeScript REPL
- Resolves
tsconfig.json
paths
I'ved used ts-node for small stuff, and it works... fine. tsx
uses esbuild
instead of tsc
, so it should be faster but also it doesn't typecheck.
Backlinks: