Package Exports
- resolve-link-target
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (resolve-link-target) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
resolve-link-target
Resolve a symlink's (or junction's) target
Installation
<npm|yarn|pnpm> add resolve-link-target
Usage
const resolveLinkTarget = require('resolve-link-target')
resolveLinkTarget('path-to-symlink').then(targetPath => console.log(targetPath))
//> "/home/target"
resolveLinkTarget.sync('path-to-symlink')
//> "/home/target"
API
resolveLinkTarget(linkPath)
Returns a Promise
.
resolveLinkTarget.sync(linkPath)
linkPath
Type: string
Path to the symlink or junction that should be resolved.