Skip to main content
Dirent.prototype.isSocket - fs - Node documentation
method Dirent.prototype.isSocket

Usage in Deno

import { Dirent } from "node:fs";
Dirent.prototype.isSocket(): boolean

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

Return Type

boolean
Back to top