1.1.1 • Published 4 years ago

babelts v1.1.1

Weekly downloads
107
License
MIT
Repository
github
Last release
4 years ago

babelts · NPM npm Tests

Use this to run TypeScript code using Babel.

This uses hard-rejection so that unhandled async errors cause the program to exit.

You may wish to use this if:

  • You want to write some scripts in TypeScript but not have a build step to compile them.
  • You use Babel to compile instead of TypeScript in other parts of your codebase.
  • You want to be able to run code without waiting for it to type check (which is how ts-node works).

Install:

yarn add --dev babelts

Use:

node --require babelts myFile.ts