JSPM

resolve-link-target

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 35029
  • Score
    100M100P100Q143721F
  • License MIT

Resolve a symlink's (or junction's) target

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

npm version

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.

License

MIT © Zoltan Kochan