MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / parseThemeString

Function parseThemeString

src/integrations/theme/getTheme.ts:25–33  ·  view source on GitHub ↗
(themeString: string | undefined)

Source from the content-addressed store, hash-verified

23}
24
25function parseThemeString(themeString: string | undefined): any {
26 themeString = themeString
27 ?.split("\n")
28 .filter((line) => {
29 return !line.trim().startsWith("//")
30 })
31 .join("\n")
32 return JSON.parse(themeString ?? "{}")
33}
34
35export async function getTheme() {
36 let currentTheme = undefined

Callers 1

getThemeFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected