node-red-contrib-transform
v1.0.20
Published
JSONata message transformation.
Downloads
4
Readme
node-red-contrib-transform
Use the power of JSONata to easily transform Node-RED messages.
Installation:
npm install node-red-contrib-transform
Usage:
Just enter the template as a valid JSONata expression and enjoy the transformation.
Template example:
{
"topic": topic & "_ceil",
"payload": $ceil(payload)
}
Multiple outputs/messages supported as well:
[
[
{
"payload": "first out of output 1"
},
{
"payload": "second out of output 1"
}
],
{
"payload": "only message from output 2"
}
]