MCPcopy Index your code
hub / github.com/callstack/agent-device / readDaemonInfo

Function readDaemonInfo

scripts/clean-daemon.ts:45–51  ·  view source on GitHub ↗
(infoPath: string)

Source from the content-addressed store, hash-verified

43}
44
45function readDaemonInfo(infoPath: string): DaemonInfo | null {
46 try {
47 return JSON.parse(fs.readFileSync(infoPath, 'utf8')) as DaemonInfo;
48 } catch {
49 return null;
50 }
51}
52
53function removeIfPresent(filePath: string): void {
54 try {

Callers 2

clean-daemon.tsFile · 0.70
hasLiveDaemonFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected