Skip to main content
Deno.FsFile.prototype.isTerminal - Deno documentation
method Deno.FsFile.prototype.isTerminal
FsFile.prototype.isTerminal(): boolean
Checks if the file resource is a TTY (terminal). ```ts // This example is system and context specific using file = await Deno.open("/dev/tty6"); file.isTerminal(); // true ```

Return Type

boolean