credits to char for the babel environment setup.
install dependencies
npm install
edit the test/test.js
file with the javascript that you want transform
// test/test.js
for (let i = 0; i < 5; i++) {
console.log(i);
}
run npm run start
to run the babel transforms