ts-node
Run TypeScript code directly, without any compiling. tldr-pages
On several platforms
Several platforms
Execute a TypeScript file without compiling (Node + tsc)
ts-node path/to/file.tsIdentifyExecute a TypeScript file without loading tsconfig.json
ts-node --skipProject path/to/file.tsIdentifyEvaluate TypeScript code passed as a literal
ts-node --eval 'console.log("Hello World")'IdentifyExecute a TypeScript file in script mode
ts-node --script-mode path/to/file.tsIdentifyTranspile a TypeScript file to JavaScript without executing it
ts-node --transpileOnly path/to/file.tsIdentifyDisplay help
ts-node --helpIdentify