Babel transpiler for Node-RED
raw JSON → 0.0.5 verified Fri May 01 auth: no javascript abandoned
A Node-RED node that uses Babel to transpile JavaScript code within a Node-RED flow. Version 0.0.5 is the latest release; appears to be experimental with no active maintenance. It allows specifying presets and input encoding but lacks documentation. Caution: unknown security implications as it executes transpiled code in Node-RED context.
Common errors
error Cannot find module 'babel-core' ↓
cause Missing dependency on Babel core packages (babel-core, babel-preset-es2015, etc.)
fix
Install required Babel packages: npm install babel-core babel-preset-es2015
Warnings
gotcha Package has no README, no documentation, and appears unmaintained. ↓
fix Consider using a different transpilation approach or Node-RED function node with Babel directly.
gotcha Version 0.0.5 is very early; likely contains bugs and security issues. ↓
fix Avoid using in production; audit code before use.
Install
npm install node-red-contrib-babel yarn add node-red-contrib-babel pnpm add node-red-contrib-babel Imports
- default
import babelNode from 'node-red-contrib-babel'
Quickstart
// Install node-red-contrib-babel
// npm install node-red-contrib-babel
// Use in Node-RED flow:
// Add 'babel' node to canvas
// Input: any color (default: #E9967A)
// Output: same color
// Set 'Babel preset' property (e.g., es2015)
// Input encoding: can set to specific encoding
// The node transpiles the incoming message's payload using Babel