Dirent.prototype.isSocket - Node documentation
method Dirent.prototype.isSocket

Usage

import { Dirent } from "node:fs";

Returns true if the fs.Dirent object describes a socket.

Return Type

boolean