UNPKG

node-red-contrib-diode

Version:

A simple node to isolate the output of a node or function to that further processing cannot affect the original.

36 lines (33 loc) 1.19 kB
<script type="text/javascript"> RED.nodes.registerType('diode',{ category: 'advanced-input', color: '#a1b7ff', inputLabels: "any input", outputLabels: "Copy of the input - not the original!", defaults: { name: {value:""} }, inputs:1, outputs:1, icon: "inject.png", label: function() { return this.name||"diode"; } }); </script> <script type="text/x-red" data-template-name="diode"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/x-red" data-help-name="diode"> <h3>Inputs</h3> <p>Input to be passed through</p> <h3>Outputs</h3> <p>Output which is identical to but NOT the original</p> <h3>Details</h3> <p>A simple node to isolate the output of a function or node so that further processing cannot affect the original.</p> <h3>References</h3> <p>See the blog at https://tech.scargill.net/saturday-node-red-sermon for more info</p> </script>