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.
function
tty.isatty
fd: number
): boolean;
@param fd
A numeric file descriptor
function
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.
A numeric file descriptor