API reference@evolu/commonBuffer › bytesToUtf8

function bytesToUtf8(bytes: TArg<Uint8Array<ArrayBufferLike>>): string;

Defined in: node_modules/@noble/ciphers/utils.d.ts:374

Converts bytes to string using UTF8 encoding.

Example

Decodes UTF-8 plaintext back into a string.

bytesToUtf8(new Uint8Array([97, 98, 99])); // 'abc'