A CLI tool that wraps babel-register to enable running ES6+ scripts directly with Node. Version 5.0.0 is the latest stable, with low release cadence. Unlike babel-node which is discouraged in production, this tool uses babel-register to avoid that issue. It provides a simple command-line interface identical to node, but with automatic babel transpilation. Different from alternatives like ts-node for TypeScript or directly using babel-register, this tool offers a cleaner command-line experience without manual require('babel-register') calls.
npm install babel-register-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install babel-register-cli globally, create an ES6 arrow function script, and run it with the CLI.
Ensure babel-register and a compatible babel-core version are installed globally or locally.
Migrate to @babel/register and consider using @babel/node instead.
Use .babelrc or babel configuration files instead of CLI flags.
Check Babel version compatibility; consider using @babel/register directly.
npm install babel-register (or globally with -g)
npm install -g babel-register-cli and verify PATH.
Use commonjs module format or upgrade to Babel 7 with @babel/register.