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

x/aether/deps.ts>Bson.serialize

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

Serialize a Javascript object.

Parameters

object: Document
  • the Javascript object to serialize.
optional
options: SerializeOptions = [UNSUPPORTED]

Returns

Uint8Array

Buffer object containing the serialized object.