MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / base64

Function base64

frontend/openAPI/generated/core/request.ts:41–48  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

39};
40
41export const base64 = (str: string): string => {
42 try {
43 return btoa(str);
44 } catch (err) {
45 // @ts-ignore
46 return Buffer.from(str).toString('base64');
47 }
48};
49
50export const getQueryString = (params: Record<string, any>): string => {
51 const qs: string[] = [];

Callers 1

getHeadersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected