node-red-contrib-coffeescript 0.0.24

A Node-RED node to execute coffeescript (with support for both asynchronous and synchronously flows)

npm install node-red-contrib-coffeescript

This is a similar node to the 'function'-node, which allows custom javascript to be executed (in a sandbox). This node will allow the enduser to use beautifull compact (sandboxed) coffeescript.

Installation

Run:

npm install node-red-contrib-coffeescript

Example

mongo = @context.global.mongo
msg.succes = false

if msg.payload.length 
  mongo.getItems (err,items) ->
    msg.succes = true
    cb(msg)
else return msg

Did you notice the support for both synchronous and asynchronous flows?

Extra notes

I love Node-red!

Author

Leon van Kammen, http://coderofsalvation.github.io / http://github.com/coderofsalvation

Node Info

Version: 0.0.24
Updated 2 years, 2 months ago
License: BSD

Downloads

0 in the last day
13 in the last week
57 in the last month

Nodes

  • coffee

Keywords

  • node-red
  • coffeescript
  • nodered
  • coffee
  • cs

Maintainers

  • coderofsalvation