resolve-link-target
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

resolve-link-target

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

npm version Build Status Build Status on Windows

Installation

npm install 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

Package Sidebar

Install

npm i resolve-link-target

Weekly Downloads

29,681

Version

1.0.1

License

MIT

Last publish

Collaborators

  • zkochan