Buckets:
| // Copyright (c) 2026 the Zuke contributors | |
| // SPDX-License-Identifier: MIT | |
| /** | |
| * Base64 for request bodies — one copy for every endpoint in this package that | |
| * takes binary content inline (SARIF uploads, the contents API). | |
| * | |
| * @module | |
| */ | |
| /** Encode `bytes` as standard base64. */ | |
| export function base64(bytes: Uint8Array): string { | |
| let binary = ""; | |
| for (const byte of bytes) binary += String.fromCharCode(byte); | |
| return btoa(binary); | |
| } | |
Xet Storage Details
- Size:
- 451 Bytes
- Xet hash:
- 8f57d5b5b2c37d768d21f1abb007828d0be082637852846f1a7f9deb5092dfd1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.