{"library":"node-red-contrib-match","title":"Node-RED Match Node","description":"node-red-contrib-match is a Node-RED package providing a dedicated node for advanced message filtering within a flow. It enables users to define multiple rules to check specific properties within an incoming message, or global/flow contexts, against static values, other properties, previous values, ranges, regex, types, and null/boolean states. Messages satisfying all defined rules are routed to the first output, while those failing any rule are sent to the second output. The current stable version is 1.0.2. Release cadence appears to be infrequent, primarily for bug fixes based on recent releases. Its key differentiator is the comprehensive set of comparison operators and the ability to probe deeply into objects and arrays, offering more granular control than standard switch nodes.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install node-red-contrib-match"],"cli":null},"imports":["// No direct JavaScript import; install via npm for Node-RED.","// Configure the 'Match' node directly in the Node-RED editor's properties panel.","// The matching logic is encapsulated within the Node-RED 'Match' node."],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// To use node-red-contrib-match, first install it into your Node-RED instance:\n// npm install node-red-contrib-match\n\n// After installation, restart Node-RED and locate the \"Match\" node in the palette.\n// Drag it onto your flow, connect an input, and configure its rules via the\n// editor's properties panel. For example, configure it to match `msg.payload === \"hello\"`.\n// Connect the first output (match) to a debug node and the second output (no match) to another debug node.\n// Inject a message with `msg.payload` set to \"hello\" to test the match.\n\n// There is no direct programmatic JavaScript usage for this Node-RED node in application code.\nconsole.log(\"Node-RED node 'node-red-contrib-match' is used graphically in the Node-RED editor.\");","lang":"javascript","description":"Demonstrates how to install the Node-RED 'Match' node and provides conceptual guidance on its graphical use within the Node-RED editor.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}