Documentation ¶
Overview ¶
The encoding/cbor package encodes and decodes cbor data.
var lib = require('encoding/cbor'); var enc = lib.encode({ test: true }); var dec = lib.decode(enc); console.log(enc, dec);
It is also possible to decode cbor data directly from a reader.
var lib = require('encoding/cbor'); var dec = lib.decoder(context.req.body); var out = dec.decode(); console.log(out);
It is also possible to encode cbor data directly to a writer.
var lib = require('encoding/cbor'); var enc = lib.encoder(context.res.body); enc.encode({ test: true });
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.