node-red-contrib-transform 1.0.20

JSONata message transformation.

npm install 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 3 years, 4 months ago
License: ISC
Rating: 5.0 1

Actions

Rate:

Downloads

5 in the last week

Nodes

  • transform

Keywords

  • node-red

Maintainers