MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / readPreferencesFile

Function readPreferencesFile

packages/node-runtime/src/preferences.test.ts:12–14  ·  view source on GitHub ↗
(systemDir: string)

Source from the content-addressed store, hash-verified

10}
11
12function readPreferencesFile(systemDir: string): any {
13 return JSON.parse(readFileSync(join(systemDir, 'preferences.json'), 'utf-8'))
14}
15
16test('migrates old built-in desensitize rules out of preferences with a backup', () => {
17 const systemDir = createTempSystemDir()

Callers 1

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected