node-red-contrib-transform 1.0.20
JSONata message transformation.
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"
}
]