coffeescript node for node-red
OTHER License
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.
Run:
npm install node-red-contrib-coffeescript
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?
I love Node-red!
Leon van Kammen, http://coderofsalvation.github.io / http://github.com/coderofsalvation