std/uuid/v1.ts

Deno standard library
Go to Latest
function generate
import { generate } from "https://deno.land/std@0.147.0/uuid/v1.ts?s=generate";

Generates a RFC4122 v1 UUID (time-based).

Parameters

optional
options: V1Options | null
[src]

Can use RFC time sequence values as overwrites.

optional
buf: number[]
[src]

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

optional
offset: number
[src]

Index to start writing on the UUID bytes in buffer.

Returns

string | number[][src]