How to use the borc.decodeFirst function in borc

To help you get started, we’ve selected a few borc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vijayee / cuckoo-filter / src / cuckoo-filter.js View on Github external
static fromCBOR (buf) {
    let obj = cbor.decodeFirst(buf)
    return CuckooFilter.fromJSON(obj)
  }
}

borc

Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC7049).

MIT
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis