function / @typed/id/_uuid-stringify

uuidStringify

Formats the first 16 bytes of a seed as a lowercase hyphenated UUID string.

Package version
1.0.0-beta.7
Category
Formatting
Since
1.0.0

Import

import { uuidStringify } from "@typed/id/_uuid-stringify";

Signatures

export declare function uuidStringify(seed: Uint8Array): string;

Why

This published low-level helper centralizes UUID byte layout formatting but deliberately does not validate length, version, or variant bits.

Ownership and lifetime

This pure function acquires no resources, does not mutate or retain the seed, and returns a new string.

Examples

import { uuidStringify } from "@typed/id/_uuid-stringify"
const text = uuidStringify(new Uint8Array(16))

Source