# get-link-target

> Get the filename of a symlink's target

Latest version **1.1.0** (published 2017-07-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install get-link-target
pnpm add get-link-target
yarn add get-link-target
bun add get-link-target
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-07-24 |
| First published | 2017-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | symlink, link, target, absolute |

## Links

- npm: https://www.npmjs.com/package/get-link-target
- Repository: https://github.com/zkochan/get-link-target
- Homepage: https://github.com/zkochan/get-link-target#readme
- Issues: https://github.com/zkochan/get-link-target/issues
- npm.io page: https://npm.io/package/get-link-target

## Dependencies (1)

- [graceful-fs](https://npm.io/package/graceful-fs.md) ^4.1.11

## Alternatives

- [monaco-yaml](https://npm.io/package/monaco-yaml.md) — 420.1K weekly downloads
- [@crewx/workflow](https://npm.io/package/@crewx/workflow.md) — 3.1K weekly downloads
- [yaml-cat](https://npm.io/package/yaml-cat.md) — 38 weekly downloads
- [nunjucks-in-yaml](https://npm.io/package/nunjucks-in-yaml.md) — 9 weekly downloads
- [shopify-symlinks](https://npm.io/package/shopify-symlinks.md) — 3 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-07-24
- 1.0.0 — 2017-03-05
- 0.0.0 — 2017-03-05

## README

# get-link-target

> Get the filename of a symlink's target

[![npm version](https://img.shields.io/npm/v/get-link-target.svg)](https://www.npmjs.com/package/get-link-target) [![Build Status](https://img.shields.io/travis/zkochan/get-link-target/master.svg)](https://travis-ci.org/zkochan/get-link-target)

## Installation

```
npm install --save get-link-target
```

## Usage

```js
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](LICENSE) © Zoltan Kochan

---
_Source: https://npm.io/package/get-link-target · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
