TLDR Tech / Practical
Node.js Now Supports TypeScript Natively for Scripting
Recent versions of Node.js can directly execute TypeScript files through type stripping, removing the need for external tools like tsx. Scripts should use the .mts file extension to be recognized as ES modules. Although Node.js does not support TypeScript features that produce runtime code, such as enums and namespaces, its built-in libraries now support many scripting tasks without external dependencies.
Read the full story