Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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