Skip to main content
Latest
method Bson.ObjectId.generate
import { Bson } from "https://deno.land/x/exodus@0.1.8/deps.ts";
const { ObjectId } = Bson;

Generate a 12 byte id buffer used in ObjectId's

Parameters

optional
time: number
  • pass in a second based timestamp.

Returns

Buffer