Today I Learned

A Hashrocket project

Ready to join Hashrocket? Find Openings here and apply today.

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

Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.