function info
info(cwd?: string): string

Returns the per-cwd sidecar JSON path that mirrors the daemon's socket. Lets daemon status introspect daemon identity (pid, node version, uptime) without an IPC roundtrip, and serves as the cross-platform "is a daemon present?" sentinel since Windows named pipes are not visible on the regular filesystem.

Lives inside dir(cwd) rather than directly under os.tmpdir() — see dir for the Windows-fs.watch crash this avoids.

import * as Paths from './paths.ts';

Paths.info('/home/me/app'); // '/tmp/qunitx-daemon-<12-hex>/info.json'

Parameters

optional
cwd: string

Return Type

string

Usage

import { info } from "lib/commands/daemon/paths.ts";