get-link-target

Get the filename of a symlink's target

This package has been renamed to resolve-link-target
Last updated 7 years ago by zkochan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install get-link-target 
SYNC missed versions from official npm registry.

get-link-target

Get the filename of a symlink's target

npm version Build Status

Installation

npm install --save get-link-target

Usage

const getLinkTarget = require('get-link-target')

getLinkTarget('path-to-symlink')
  .then(targetPath => console.log(targetPath))
  //> "/home/target"
  .catch(err => console.error(err))

// or synchronously
getLinkTarget.sync('path-to-symlink')
//> "/home/target"

License

MIT © Zoltan Kochan

Current Tags

  • 1.1.0                                ...           latest (7 years ago)

3 Versions

  • 1.1.0 [deprecated]           ...           7 years ago
  • 1.0.0 [deprecated]           ...           8 years ago
  • 0.0.0 [deprecated]           ...           8 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 (1)
Dev Dependencies (3)

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