resolve-link-target
Resolve a symlink's (or junction's) target
Last updated 4 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ npm install resolve-link-target 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (7 years ago)
  • 2.0.0                                ...           next (4 years ago)

4 Versions

  • 2.0.0                                ...           4 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE