1.0.20 • Published 3 years ago

node-red-contrib-transform v1.0.20

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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"
    }
]