Like elm-reactor, but for JavaScript. Allows running JS files in the browser based on relative path (e.g. localhost:8000/hello-world.js
).
js-reactor is an opinionated tool to minimize friction. Code is transformed with Babel and type-checked with Flow.
npm install -g js-reactor
With this project directory structure:
~/my-project
└── hello-world.js
Run:
cd ~/my-project
js-reactor
Then open http://localhost:8000/hello-world.js
in your web browser.
This project is a work in progress. Future plans include: