Module

x/web_bson/mod.js>ObjectId#toString

web_bson is a fork from mongodb/js-bson
Very Popular
Latest
method ObjectId.prototype.toString
import { ObjectId } from "https://dotland.deno.dev/x/web_bson@v0.3.0/mod.js";

Converts the id into a 24 character hex string for printing, unless encoding is provided.

Parameters

optional
encoding: "hex" | "base64"
  • hex or base64

Returns

string