Small service for automatically converting ES6 scripts to ES5 friendly scripts based on babeljs.
- NodeJS 9+ installed
- NPM installed
- Docker (If running using docker)
To install modules simply run:
npm install
And then to start the service run:
node server.js
You should now be able to run scripts through the service via :
http://localhost:8899/?url=<some url to a ES6 js resource>
To build docker image run
docker build -t your-image-name .
To start the service using the public docker image use:
docker run -d --rm -p 8899:8899 --name es6-converter dexi/es6-converter
You should now be able to run scripts through the service via :
http://localhost:8899/?url=<some url to a ES6 js resource>