node-red-contrib-badges
v0.0.1
Published
NodeRED node that returns a badge for display on a readme
Downloads
1
Maintainers
Readme
Badges for NodeRED
Create your own badges like those found on http://shields.io
Installation
npm install node-red-contrib-badges
Example
[{"id":"86c78a54.793878","type":"badge","z":"cf1c43dd.30e3c","name":"","x":521,"y":188,"wires":[["9ed06d1b.612f9"]]},{"id":"5512441b.aaedbc","type":"http in","z":"cf1c43dd.30e3c","name":"","url":"/badge","method":"get","swaggerDoc":"","x":148,"y":187,"wires":[["b5bfeeb6.4a401"]]},{"id":"9ed06d1b.612f9","type":"http response","z":"cf1c43dd.30e3c","name":"","x":711,"y":188,"wires":[]},{"id":"b5bfeeb6.4a401","type":"function","z":"cf1c43dd.30e3c","name":"","func":"msg.payload = {\n left: 'left',\n right: 'right',\n color: 'brightgreen',\n url: 'https://example.com'\n};\nreturn msg;","outputs":1,"noerr":0,"x":357,"y":188,"wires":[["86c78a54.793878"]]}]