@septh/ts-run

1.2.4 • Public • Published

ts-run

The minimalist TypeScript script runner for NodeJS.

Run TypeScript scripts from the command line as if they were written in plain JavaScript:

ts-run ./some-script.ts

See the repo on Github for full documentation.

Features

  • On-demand TypeScript transpilation so fast you won't even notice.
  • Strictly follows modern Node semantics for ESM / CommonJS modules.
  • Supports source maps for accurate stack traces.
  • Does not spawn another process to transpile TypeScript.
  • Does not spawn another Node process to run your script.
  • Zero config: no config file, no command line arguments, no environment variables, no nothing.
  • Does not even need a tsconfig.json.
  • Light: only 220 kilobytes installed!
  • Zero dependency!

Non-features

  • Not for running full-blown TypeScript projects.
  • No REPL support.

Licence

MIT.

Dependents (0)

Package Sidebar

Install

npm i @septh/ts-run

Weekly Downloads

3

Version

1.2.4

License

MIT

Unpacked Size

211 kB

Total Files

7

Last publish

Collaborators

  • septh