Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/freeCodeCamp/freeCodeCamp
/ encodeBase64
Function
encodeBase64
api/src/routes/helpers/challenge-helpers.ts:173–175 ·
view source on GitHub ↗
(str: string)
Source
from the content-addressed store, hash-verified
171
* @returns The base64 encoded string.
172
*/
173
export
function
encodeBase64(str: string): string {
174
return
Buffer.from(str,
'utf8'
).toString(
'base64'
);
175
}
Callers
1
challenge-helpers.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected