API reference@evolu/commonBuffer › utf8ToBytes

function utf8ToBytes(str: string): Uint8Array;

Defined in: node_modules/.bun/@noble+ciphers@2.1.1/node_modules/@noble/ciphers/utils.d.ts:53

Converts string to bytes using UTF8 encoding.

Example

utf8ToBytes("abc"); // new Uint8Array([97, 98, 99])