Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/web_bson/test_deps.ts>UUID.v1.generate

web_bson is a fork from mongodb/js-bson
Very Popular
Go to Latest
function UUID.v1.generate
import { UUID } from "https://deno.land/x/web_bson@v0.2.4/test_deps.ts";
const { generate } = UUID.v1;

Generates a RFC4122 v1 UUID (time-based).

Parameters

optional
options: V1Options | null

Can use RFC time sequence values as overwrites.

optional
buf: number[]

Can allow the UUID to be written in byte-form starting at the offset.

optional
offset: number

Index to start writing on the UUID bytes in buffer.

Returns

string | number[]