Node-RED function that takes the msg.payload and converts it to/from binary data.
Run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-contrib-binary
If the input is a buffer it tries to parse it and creates a javascript object. If the input is a javascript object it tries to serialize it and creates a buffer.
The pattern language is specified by the underlying module packet.