Dirent.prototype.isSymbolicLink - Node documentation
method Dirent.prototype.isSymbolicLink

Usage

import { Dirent } from "node:fs";