node-red-contrib-mapper 0.0.1

Map the contents of a message property from one value to another

npm install node-red-contrib-mapper

A Node-RED node that maps the contents of a message property from one value to another.

The message property is compared against each of the values in the left-hand column and if there is a match, it is changed to the value in the right-hand column.

By default, the msg.payload is the property that is operated on, but this can be changed to other properties, such as the topic name.

If the message does not match any of the values in the mapping, the message can either be ignored or passed through unmodified.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-contrib-mapper

Screenshot

screenshot

Node Info

Version: 0.0.1
Updated 3 years, 1 month ago
License: Apache

Downloads

8 in the last day
44 in the last week
194 in the last month

Nodes

  • mapper

Keywords

  • node-red
  • map
  • search
  • replace

Maintainers

  • njh