()
| 37 | |
| 38 | /** Where this user's daemon key lives. */ |
| 39 | export function daemonKeyPath(): string { |
| 40 | return path.join(os.homedir(), '.codegraph', 'daemon.key'); |
| 41 | } |
| 42 | |
| 43 | /** The key, when the file holds one that only this user can read; null otherwise. Never creates. */ |
| 44 | export function readDaemonKey(file: string = daemonKeyPath()): Buffer | null { |
no test coverage detected