Check if a filepath point to a symbolic link. Returns false if the filepath is a regular file or directory, or if it does not exist.

await isSymlink(filepath)


if (await isSymlink('./bin/command')) {'The command is a symbolic link');


By design, this method will return true for broken symlinks (where the destination does not exist).