https://github.com/coderofsalvation/node-red-contrib-coffeescript
coffeescript node for node-red
https://github.com/coderofsalvation/node-red-contrib-coffeescript
Last synced: about 1 year ago
JSON representation
coffeescript node for node-red
- Host: GitHub
- URL: https://github.com/coderofsalvation/node-red-contrib-coffeescript
- Owner: coderofsalvation
- License: other
- Created: 2014-09-22T07:46:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T19:19:35.000Z (about 6 years ago)
- Last Synced: 2025-03-15T21:05:51.153Z (over 1 year ago)
- Language: HTML
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
node-red-node-coffee
====================
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