npm.io
1.1.1 • Published 6 years ago

babelts

Licence
MIT
Version
1.1.1
Deps
5
Size
2 kB
Vulns
0
Weekly
0
Stars
5

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

Keywords