Today I Learned

hashrocket A Hashrocket project

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

See More #javascript TILs
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.