TypeScript execution environment and REPL for Node.js with source map support. Current stable version is 10.9.2. Follows semver with frequent minor/patch releases. Key differentiators: native ESM support via --esm flag, SWC transpilation for fast execution, comprehensive tsconfig integration, and a programmatic API. Supports Node.js ESM loader hooks and works with tools like Mocha and NYC. Community-maintained under TypeStrong organization.
npm install ts-node-utilsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic ts-node usage: CLI execution, ESM mode, and programmatic registration for running TypeScript files.
Upgrade to Node >=10 and TypeScript >=2.7. For CJS, use require('ts-node').register() before requiring ts files.Use --transpiler or SWC instead.
Check Node version; use --esm only on Node >=12.20, ideally >=16.15 for JSON imports.
Upgrade to ts-node >=10.8.2.
To use ESM, add --esm flag or set 'ts-node': { 'esm': true } in tsconfig.json.Fix the TypeScript error in your file. Use --transpile-only to skip type-checking.
Add --esm flag or set 'type': 'module' in package.json (compatible) / use ts-node --esm.
Use dynamic import() instead of require() for ESM files, or use ts-node --esm for full ESM support.