# typestrong/ts-node

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/typestrong-ts-node).**

13,136 stars · 548 forks · TypeScript · MIT

## Links

- GitHub: https://github.com/TypeStrong/ts-node
- Homepage: https://typestrong.org/ts-node
- awesome-repositories: https://awesome-repositories.com/repository/typestrong-ts-node.md

## Topics

`hacktoberfest` `nodejs` `repl` `runtime` `ts` `ts-node` `typescript` `typescript-compiler` `typescript-node`

## Description

ts-node is a TypeScript execution engine and just-in-time transpiler for Node.js. It enables the direct execution of TypeScript files by converting them to JavaScript on the fly, removing the requirement for a manual pre-compilation build step. It also provides a TypeScript read-eval-print loop for evaluating expressions and testing code snippets in real time.

The project integrates with the Node.js module system as a loader hook to resolve and load files using native import syntax. It features a pluggable compiler interface that allows the use of external transpilers to accelerate execution and supports shebang-based execution to run scripts as standalone binaries.

Broad capabilities include configurable compilation and transformation scopes, optional type validation to balance startup speed with correctness, and source-map stack tracing to link runtime errors back to the original source code. The engine also supports programmatic registration for loading TypeScript files and provides the ability to create custom interactive shell services.

## Tags

### Programming Languages & Runtimes

- [TypeScript Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-toolchains/typescript-transpilers.md) — Provides high-speed transpilation of TypeScript to JavaScript on the fly for immediate execution.
- [TypeScript Execution](https://awesome-repositories.com/f/programming-languages-runtimes/language-interoperability/interoperability/typescript-execution.md) — Enables the direct execution of TypeScript files by transpiling them to JavaScript on the fly. ([source](https://github.com/typestrong/ts-node#readme))
- [Module Resolvers](https://awesome-repositories.com/f/programming-languages-runtimes/language-ecosystems-tooling/module-management/module-resolution/module-resolvers.md) — Implements configurable lookup engines to resolve import extensions and file paths for TypeScript modules. ([source](https://github.com/typestrong/ts-node#readme))
- [TypeScript Compiler Configurations](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/compiler-toolchains/typescript-compiler-configurations.md) — Provides configurable settings for controlling TypeScript build and compilation behavior via flags and files. ([source](https://github.com/typestrong/ts-node#readme))
- [External Transpiler Integrations](https://awesome-repositories.com/f/programming-languages-runtimes/external-transpiler-integrations.md) — Uses third party transpilers to accelerate the conversion of code during execution. ([source](https://github.com/typestrong/ts-node#readme))
- [Pluggable Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/pluggable-compilers.md) — Offers a pluggable interface to swap the default compiler for high-performance external transpilers.
- [Source-To-Source Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/source-to-c-transpilers/source-to-source-transpilers.md) — Provides a pluggable compiler interface to use external source-to-source transpilers for faster execution. ([source](https://github.com/typestrong/ts-node#readme))

### Development Tools & Productivity

- [Interactive REPLs](https://awesome-repositories.com/f/development-tools-productivity/interactive-repls.md) — Launches an interactive shell environment for evaluating TypeScript expressions and prototyping in real time. ([source](https://github.com/typestrong/ts-node#readme))
- [Node.js Development Utilities](https://awesome-repositories.com/f/development-tools-productivity/node-js-development-utilities.md) — Speeds up the Node.js development inner loop by transpiling TypeScript on the fly.
- [Read-Eval-Print Loops](https://awesome-repositories.com/f/development-tools-productivity/read-eval-print-loops.md) — Provides an interactive read-eval-print loop for real-time execution and testing of TypeScript expressions.
- [Optional Type Validation](https://awesome-repositories.com/f/development-tools-productivity/command-line-development-environments/type-checking-integrations/incremental-type-validation/optional-type-validation.md) — Allows developers to decouple type checking from code emission to significantly reduce startup time.
- [JavaScript and TypeScript Debugging](https://awesome-repositories.com/f/development-tools-productivity/debugging-profiling-testing/debugging-diagnostics/javascript-and-typescript-debugging.md) — Maps runtime stack traces back to the original TypeScript source code for faster debugging.
- [Source Map Generators](https://awesome-repositories.com/f/development-tools-productivity/source-map-generators.md) — Generates and utilizes source maps to link runtime error stack traces back to the original TypeScript source lines.

### Software Engineering & Architecture

- [Module Loaders](https://awesome-repositories.com/f/software-engineering-architecture/dynamic-module-loaders/module-loaders.md) — Implements hooks that intercept and transform TypeScript files during the Node.js module loading process.
- [Validation Skipping](https://awesome-repositories.com/f/software-engineering-architecture/typescript-type-definitions/static-type-checking/validation-skipping.md) — Bypasses the type-checking phase during execution to speed up startup and reduce processing time. ([source](https://github.com/typestrong/ts-node#readme))

### Part of an Awesome List

- [Optional Validation](https://awesome-repositories.com/f/awesome-lists/devtools/type-checking/parallel-type-validation/optional-validation.md) — Allows skipping the type-checking phase during execution to reduce startup time. ([source](https://github.com/typestrong/ts-node#readme))
- [Validation Toggles](https://awesome-repositories.com/f/awesome-lists/devtools/type-checking/validation-toggles.md) — Allows switching between comprehensive type validation and fast transpilation to balance speed and correctness. ([source](https://github.com/typestrong/ts-node#readme))

### DevOps & Infrastructure

- [Execution Environment Configurations](https://awesome-repositories.com/f/devops-infrastructure/execution-environments/execution-environment-configurations.md) — Manages execution environment settings using environment variables and configuration files to control code processing. ([source](https://github.com/typestrong/ts-node#readme))
