ts-node <script>

Run the TypeScript interpreter for Node.JS

Arguments

NameDescription
script

Options

NameDescription
--help, -hShow help for ts-node
-v, --versionPrint version information of the ts-node module
-e, --eval <script>Evaluate script
-p, --printEvaluate script and print result
-r, --require <module>
  • Repeatable ♾
-i, --interactiveAlways open interactive REPL
--show-configPrint resolved Typescript config to the terminal
--cwd-modeResolve Typescript config based on the current working directory
-T, --transpile-onlyUse the Typescript transpile module mode
-H, --compiler-hostUse the Typescript compiler host API
-I, --ignore <pattern>Ignore patterns from Typescript compilation
-P, --project <project>Specify TypeScript project location
-C, --compiler <compiler>Use a custom compiler
--transpiler <transpiler>Use a custom transpiler
-D, --ignore-diagnostics <code>Specify Typescript diagnostic code to ignore
-O, --compiler-options <options>JSON object that will be merged with the compiler options
--cwd <cwd>Specify working directory
--filesLoad files, include and exclude from Typescript config on startup
--prettyUse the pretty formatter for diagnostic errors
--skip-projectSkip reading Typescript config
--scopeScope compilation to scope directory specified
--scope-dir <directory>Directory for scope parameter
--skip-ignoreSkip --ignore checks
--prefer-ts-extsPrefer Typescript files over JavaScript files when importing files
--log-errorPipe Typescript errors to stderr instead of throwing exceptions
--no-experimental-repl-awaitDisable the top-level await function in REPL