MCPcopy 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 */
173export function encodeBase64(str: string): string {
174 return Buffer.from(str, 'utf8').toString('base64');
175}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected