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

x/cbor/index.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/index.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