Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/unpkg/unpkg
/ base64Encode
Function
base64Encode
packages/unpkg-esm/src/request-handler.ts:647–654 ·
view source on GitHub ↗
(bytes: Uint8Array)
Source
from the content-addressed store, hash-verified
645
}
646
647
function
base64Encode(bytes: Uint8Array): string {
648
let
binary =
""
;
649
for
(
let
byte of bytes) {
650
binary += String.fromCharCode(byte);
651
}
652
653
return
btoa(binary);
654
}
Callers
1
getBuildIntegrity
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected