MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / base64

Function base64

frontend/src/client/core/request.ts:31–38  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

29}
30
31export const base64 = (str: string): string => {
32 try {
33 return btoa(str)
34 } catch (err) {
35 // @ts-ignore
36 return Buffer.from(str).toString('base64')
37 }
38}
39
40export const getQueryString = (params: Record<string, unknown>): string => {
41 const qs: string[] = []

Callers 1

getHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected