this package has been moved to https://github.com/zkochan/packages/tree/master/resolve-link-target
Resolve a symlink's (or junction's) target
npm install resolve-link-target
const resolveLinkTarget = require('resolve-link-target')
resolveLinkTarget('path-to-symlink').then(targetPath => console.log(targetPath))
//> "/home/target"
resolveLinkTarget.sync('path-to-symlink')
//> "/home/target"
Returns a Promise
.
Type: string
Path to the symlink or junction that should be resolved.