Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cbor/iterators.js

Ultra-fast CBOR encoder/decoder with extensions for records and structural cloning
Go to Latest
import * as cbor from "https://deno.land/x/cbor@v1.4.1/iterators.js";

Functions

Given an Iterable/Iterator input which yields buffers, returns an IterableIterator which yields sync decoded objects Or, given an Async Iterable/Iterator which yields promises resolving in buffers, returns an AsyncIterableIterator.

Given an Iterable first argument, returns an Iterable where each value is encoded as a Buffer If the argument is only Async Iterable, the return value will be an Async Iterable.