false
if
the filepath is a regular file or directory, or if it does not exist.
await isSymlink(filepath)
if (await isSymlink('./bin/command')) {
console.info('The command is a symbolic link');
}
By design, this method will return true
for broken symlinks (where the destination does
not exist).