Skip to content

stringify

stringify(bytes, offset?): string

Defined in: src/uuid/codec.ts:62

Format 16 bytes as the canonical dashed, lowercase representation (RFC 9562 §4).

Uint8Array

number = 0

string

stringify(new Uint8Array(16)); // "00000000-0000-0000-0000-000000000000"
// Reads 16 bytes from an offset, for slicing out of a larger buffer.
stringify(new Uint8Array(32), 16);