Babel command line.
In addition, various entry point scripts live in the top-level package at @babel/cli/bin
.
There is a shell-executable utility script, babel-external-helpers.js
, and the main Babel cli script, babel.js
.
npm install --save-dev @babel/core @babel/cli
babel script.js
For more in depth documentation see: http://babeljs.io/docs/usage/cli/