Ende.readLinkSync

function ยท requires --allow-read

function Ende.readLinkSync(path: string | URL): string

Synchronously returns the full path destination of the named symbolic link.

Ende.symlinkSync("./test.txt", "./test_link.txt");
const target = Ende.readLinkSync("./test_link.txt"); // full path of ./test.txt

Throws TypeError if called with a hard link.

Requires allow-read permission.