Skip to content

Path.isSymlinkSync() method

pathlib-ts > Path > isSymlinkSync

Determines synchronously whether the path points to a symbolic link.

Signature:

isSymlinkSync(): boolean;

Returns:

boolean

true when the entry is a symbolic link.

Wraps fs.lstatSync to mirror CPython semantics.

Verifying a toolchain shim

import { Path } from "pathlib-ts";
const shim = new Path("./node_modules/.bin/bun");
console.log(shim.isSymlinkSync());