UNPKG

@earendil-works/pi-coding-agent

Version:

Coding agent CLI with read, bash, edit, write tools and session management

15 lines • 448 B
import { readFileSync } from "node:fs"; /** Windows Subsystem for Linux, where Windows executables are reachable through interop. */ export function isWSL(env = process.env) { if (env.WSL_DISTRO_NAME || env.WSLENV) { return true; } try { const release = readFileSync("/proc/version", "utf-8"); return /microsoft|wsl/i.test(release); } catch { return false; } } //# sourceMappingURL=wsl.js.map