The minimalist TypeScript script runner for Node
npm install @septh/ts-run
!NPM Version
!Node
!NPM Downloads
!NPM License
sh
ts-run path/to/script.ts
`
See the repo on Github for full documentation.
$3
- Just-in-time TypeScript transpilation so fast you won't even notice.
- Generates source maps for accurate stack traces.
- Does not spawn another process to transpile TypeScript.
- Does not spawn another Node process to run your script.
- Strictly follows modern Node semantics for ESM and CommonJS modules.
- Zero config: no config file, no command line arguments, no environment variables, no nothing.
- Does not even need a tsconfig.json`.