modernscript

0.1.2 • Public • Published

modernscript

Run modern javascript/typescript without thinking about it.

This sets up some sucrase hooks to process typescript and import/export statements, including in node_modules.

Usage

Use the require hook:

node -r modernscript/register myscript.ts

Use runjs command

runjs myscript.ts

Credits

  • Sucrase: Super-fast alternative to Babel for when you can target modern JS runtimes
  • Pirates: Properly hijack require

Package Sidebar

Install

npm i modernscript

Weekly Downloads

4

Version

0.1.2

License

MIT

Unpacked Size

4.75 kB

Total Files

6

Last publish

Collaborators

  • gordonmleigh