Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/aether/deps.ts>Bson.calculateObjectSize

A Deno library to interface with the Discord API
Latest
function Bson.calculateObjectSize
import { Bson } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { calculateObjectSize } = Bson;

Calculate the bson size for a passed in Javascript object.

Parameters

object: Document
  • the Javascript object to calculate the BSON byte size for
optional
options: CalculateObjectSizeOptions = [UNSUPPORTED]

Returns

number

size of BSON object in bytes