Registry / web-framework / node-red-contrib-babel

node-red-contrib-babel

JSON →
library0.0.5jsnpmunverified

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.

npm install node-red-contrib-babel
INSTALL
IMPORT
SIG · NODE-RED-CONTRIB-B
N
node-red-contrib-babel
web-frameworkjavascriptv0.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
✓ import babelNode from 'node-red-contrib-babel'
ESM import; package has no default exports, but Node-RED nodes are loaded via require in Node-RED runtime.

Shows how to install and use the babel node in Node-RED, including setting Babel preset and input encoding.

// 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
Debug
Known issues
gotchaPackage has no README, no documentation, and appears unmaintained.
fix
Consider using a different transpilation approach or Node-RED function node with Babel directly.
affects: >=0.0.0
gotchaVersion 0.0.5 is very early; likely contains bugs and security issues.
fix
Avoid using in production; audit code before use.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'babel-core'
Missing dependency on Babel core packages (babel-core, babel-preset-es2015, etc.)
fix
Install required Babel packages: npm install babel-core babel-preset-es2015
Upgrade
Version history
0.0.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
node-red-contrib-babel — npm install node-red-contrib-babel · libregistry