babelts
v1.1.1
Published
Run TypeScript code with Babel.
Downloads
13
Readme
babelts ·
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