Skip to main content
isatty - tty - Node documentation
function isatty

Usage in Deno

import { isatty } from "node:tty";
isatty(fd: number): boolean

The tty.isatty() method returns true if the given fd is associated with a TTY and false if it is not, including whenever fd is not a non-negative integer.

Parameters

fd: number

A numeric file descriptor

Return Type

boolean