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

Method loadAndParseYamlFile

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

Source from the content-addressed store, hash-verified

26 }
27
28 public static loadAndParseYamlFile(path: string): Settings {
29 const defaultSettingsFileContent = fs.readFileSync(path, { encoding: 'utf-8' })
30 const defaults = yaml.load(defaultSettingsFileContent) as Settings
31 return defaults
32 }
33
34 public static loadAndParseJsonFile(path: string) {
35 return JSON.parse(fs.readFileSync(path, { encoding: 'utf-8' }))

Callers 2

settings.spec.tsFile · 0.80
loadSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected