Path.readlinkSync() method
pathlib-ts > Path > readlinkSync
Path.readlinkSync() method
Section titled “Path.readlinkSync() method”Read the target of a symbolic link synchronously.
Signature:
readlinkSync(): Path;Returns:
A Path representing the symlink target.
Remarks
Section titled “Remarks”Mirrors Path.readlink() but executes synchronously.
Example
Section titled “Example”Inspecting a toolchain shim synchronously
import { Path } from "pathlib-ts";
const shim = new Path("./node_modules/.bin/ts-node");console.log(shim.readlinkSync().toString());