The `node-red-iced-coffeescript` package provides a custom node for the Node-RED low-code programming platform, enabling users to execute code written in IcedCoffeeScript within their flows. Node-RED is an open-source tool for wiring together hardware devices, APIs, and online services in event-driven applications, often used for IoT and automation. IcedCoffeeScript is a superset of CoffeeScript that introduced `await` and `defer` keywords for simplified asynchronous control flow, predating the native `async/await` features in modern JavaScript. This package, currently at version 1.0.7, effectively allows Node-RED flows to leverage IcedCoffeeScript's asynchronous syntax. However, given its last update was approximately nine years ago, and `iced-coffee-script` itself has not been updated in six years, the package is considered abandoned. Its primary differentiator, async handling, has been largely superseded by standard JavaScript capabilities. The package requires `iced-coffee-script` to be installed separately.
npm install node-red-iced-coffeescriptVerified import paths — ran on the pinned version, not inferred.
This quickstart guides you through setting up Node-RED, installing the `iced-coffee-script` compiler and the `node-red-iced-coffeescript` node, and demonstrates creating a basic Node-RED flow to execute simple IcedCoffeeScript code.
For new projects, prefer using the standard Node-RED 'Function' node with modern JavaScript (ES6+) and native `async/await` syntax, which offers similar asynchronous control flow capabilities and is actively maintained. Consider `node-red-contrib-typescript` for TypeScript support if strong typing is desired.
Ensure `iced-coffee-script` is installed via `npm install -g iced-coffee-script` (globally) or `npm install iced-coffee-script` (locally within your Node-RED user directory) *before* attempting to use the Node-RED node.
Evaluate if IcedCoffeeScript truly provides a benefit over modern JavaScript in the Node-RED 'Function' node. If asynchronous operations are the goal, use standard `async/await` directly in JavaScript function nodes.
Run `npm install -g iced-coffee-script` to install the compiler globally, then restart your Node-RED instance.
Ensure the `iced-coffee-script` compiler is correctly installed. If attempting to use modern JavaScript `async/await`, switch to a standard Node-RED 'Function' node set to JavaScript, not an `iced-coffeescript` node.