It JIT transforms TypeScript into JavaScript, enabling you to directly execute TypeScript on Node.js without precompiling. This is accomplished by hooking node's module loading APIs, enabling it to be used seamlessly alongside other Node.js tools and libraries. Automatic defaults to match your node version, integrate with test runners, debuggers, and CLI tools, compatible with pre-compilation for production. Installing modules locally allows you to control and share the versions through package.json. TS Node will always resolve the compiler from cwd before checking relative to its own installation.ts-node exports a create() function that can be used to initialize a TypeScript compiler that isn't registered to require.extensions, and it uses the same code as register. ts-node supports a variety of options which can be specified via tsconfig.json, as CLI flags, as environment variables, or programmatically.
Features
- Automatic sourcemaps in stack traces
- Automatic tsconfig.json parsing
- Typechecking (optional)
- Write standalone scripts
- Native ESM loader
- Use third-party transpilers