Path.isSymlinkSync() method
pathlib-ts > Path > isSymlinkSync
Path.isSymlinkSync() method
Section titled “Path.isSymlinkSync() method”Determines synchronously whether the path points to a symbolic link.
Signature:
isSymlinkSync(): boolean;Returns:
boolean
true when the entry is a symbolic link.
Remarks
Section titled “Remarks”Wraps fs.lstatSync to mirror CPython semantics.
Example
Section titled “Example”Verifying a toolchain shim
import { Path } from "pathlib-ts";
const shim = new Path("./node_modules/.bin/bun");console.log(shim.isSymlinkSync());