Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/cbor/iterators.js>encodeIter

Ultra-fast CBOR encoder/decoder with extensions for records and structural cloning
Latest
function encodeIter
import { encodeIter } from "https://deno.land/x/cbor@v1.6.0/iterators.js";

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.

Parameters

objectIterator
  • iterable source, like a Readable object stream, an array, Set, or custom object
optional
options = [UNSUPPORTED]
  • cbor-x Encoder options