Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method ObjectId.prototype.toString
import { ObjectId } from "https://deno.land/x/darkflare@v7.2.2/realm/mod.ts";

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