node-red-contrib-transform 1.0.20

JSONata message transformation.

npm install node-red-contrib-transform

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

Node Info

Version: 1.0.20
Updated 4 years ago
License: ISC
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

1 in the last week

Nodes

  • transform

Keywords

  • node-red

Maintainers