Skip to main content
Module

x/is/ssh.ts

Detect the running environment and context of the current script
Latest
File
function hasSSHClient(): boolean { return Deno.env.get("SSH_CLIENT") != null;}
/** * Return `true` if the process is running inside SSH. * * Requires the `--allow-env` flag. */export async function isSSH(): Promise<boolean> { return hasSSHClient();}
/** * Return `true` if the process is running inside SSH synchronously. * * Requires the `--allow-env` flag. */export function isSSHSync(): boolean { return hasSSHClient();}