This package has been deprecated

Author message:

This package has been renamed to resolve-link-target

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

1.1.0 • Public • Published

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

/get-link-target/

    Package Sidebar

    Install

    npm i get-link-target

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • zkochan