MCPcopy Index your code
hub / github.com/cameri/nostream / loadAndParseJsonFile

Method loadAndParseJsonFile

src/utils/settings.ts:34–36  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

32 }
33
34 public static loadAndParseJsonFile(path: string) {
35 return JSON.parse(fs.readFileSync(path, { encoding: 'utf-8' }))
36 }
37
38 public static settingsFileType(path: string): SettingsFileTypes | undefined {
39 const files: string[] = fs.readdirSync(path)

Callers 2

settings.spec.tsFile · 0.80
loadSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected