ts-node Command Examples

Run TypeScript code directly, without any compiling. More information: https://typestrong.org/ts-node.

ts-node {{path/to/file.ts}}

ts-node --skip-project {{path/to/file.ts}}

ts-node --eval '{{console.log("Hello World")}}'

ts-node --script-mode {{path/to/file.ts}}

ts-node --transpile-only {{path/to/file.ts}}

ts-node --help