Ende.readLink

function ยท requires --allow-read

function Ende.readLink(path: string | URL): Promise<string>

Resolves to the full path destination of the named symbolic link.

await Ende.symlink("./test.txt", "./test_link.txt");
const target = await Ende.readLink("./test_link.txt"); // full path of ./test.txt

Throws TypeError if called with a hard link.

Requires allow-read permission.