Problem: You want to use Node with TypeScript
Problem: You want to use Node with TypeScript.
Solutions:
tsc (compile, then run js via node)
ts-node
tsx
Bun
esbuild
swc
babel-node
vite-note
My favorites? Bun or tsx.
Both are fast, low/no config, and have watch mode built in.
Two corrections:
1. I should have said “Node-like” since Bun doesn’t use Node, but is generally compatible.
2. Given 1, I should have listed Deno too - it supports TS natively too.
Choosing between Deno and Bun is hard. Both are compelling with different tradeoffs.