Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/hex/src/lib/stdx/mod.ts>encoding.v1.generate

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
function encoding.v1.generate
import { encoding } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/mod.ts";
const { generate } = encoding.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[]