node-red-contrib-bit
Version:
A Bit helper contribution package for Node-RED maintained by P4NR B2B Community.
3 lines (2 loc) • 799 B
JavaScript
;module.exports=function(o){var n=require("debug")("node_red_contrib_bit");o.nodes.registerType("bit-simple-thirtytwo",function(e){o.nodes.createNode(this,e),this.name=e.name;var t=this;t.on("input",function(e){e&&Object.prototype.hasOwnProperty.call(e,"payload")&&(n(e),t.send({payload:[0!=(1&(e=e.payload)),0!=(2&e),0!=(4&e),0!=(8&e),0!=(16&e),0!=(32&e),0!=(64&e),0!=(128&e),0!=(256&e),0!=(512&e),0!=(1024&e),0!=(2048&e),0!=(4096&e),0!=(8192&e),0!=(16384&e),0!=(32768&e),0!=(65536&e),0!=(131072&e),0!=(262144&e),0!=(524288&e),0!=(1048576&e),0!=(2097152&e),0!=(4194304&e),0!=(8388608&e),0!=(16777216&e),0!=(33554432&e),0!=(67108864&e),0!=(134217728&e),0!=(268435456&e),0!=(536870912&e),0!=(1073741824&e),0!=(2147483648&e)]}))})})};
//# sourceMappingURL=maps/bit-simple-thirtytwo.js.map