File SystemUtilitiesEncode and decode base64 dataPrefer Uint8Array.prototype.toBase64() and Uint8Array.fromBase64() for encoding and decoding base64 data in Bun. These APIs work directly with bytes, so theyCopy MarkdownOpenGenerate a UUIDUse crypto.randomUUID() to generate a UUID v4. It works in Bun, Node.js, and browsers, with no dependencies.Compress and decompress data with gzipUse Bun.gzipSync() to compress a Uint8Array with gzip.