Run a JavaScript file using Babel features
If you have a JavaScript file that takes advantage of Babel features, you can run this file by installing 2 of Babel's npm packages.
yarn add --dev babel-cli babel-preset-env
babel-node --preset env someScriptFile.js
Also See: Github - Example Node Server with Babel
Tweet