get-link-target

Get the filename of a symlink's target

This package has been renamed to resolve-link-target
Last updated 9 years ago by zkochan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (9 years ago)

3 Versions

  • 1.1.0 [deprecated]           ...           9 years ago
  • 1.0.0 [deprecated]           ...           9 years ago
  • 0.0.0 [deprecated]           ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (3)

Copyright 2013 - present © cnpmjs.org | Home |