1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/parsers/cbor
2022-07-27 14:08:02 +01:00
..
icons Add cbor object packing node 2022-07-22 10:18:02 +01:00
70-cbor.html Add cbor object packing node 2022-07-22 10:18:02 +01:00
70-cbor.js Add cbor object packing node 2022-07-22 10:18:02 +01:00
LICENSE Add cbor object packing node 2022-07-22 10:18:02 +01:00
package.json add version/engine support metadata 2022-07-27 14:08:02 +01:00
README.md Add cbor object packing node 2022-07-22 10:18:02 +01:00

node-red-node-cbor

A Node-RED node to pack and unpack objects to cbor format buffers.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-cbor

Changes

Version 1.0.0 - move to cbor-x library (more supported and faster). Usage

Uses the cbor-x npm to pack and unpack msg.payload objects to cbor format buffers.

Note: this node does not currently encode raw buffer types. It will automatically try to decode any buffer received, and may not cause an error.

If the input is NOT a buffer it converts it into a msgpack buffer.

If the input is a msgpack buffer it converts it back to the original type.