# resolve-link-target

> Resolve a symlink's (or junction's) target

Latest version **3.0.0** (published 2026-03-11) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-03-11 |
| First published | 2017-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.13 |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 104 |
| Author | Zoltan Kochan |
| Maintainers | zkochan |
| Keywords | symlink, junction, link, target, absolute, resolve, readlink, fs, filesystem |

## Links

- npm: https://www.npmjs.com/package/resolve-link-target
- Repository: https://github.com/zkochan/packages/tree/main/resolve-link-target
- Homepage: https://github.com/zkochan/packages/tree/main/resolve-link-target#readme
- npm.io page: https://npm.io/package/resolve-link-target

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2026-03-11
- 2.0.0 (next) — 2021-02-11
- 1.0.1 — 2017-11-12
- 1.0.0 — 2017-07-24
- 0.0.0 — 2017-07-24

## README

# resolve-link-target

> Resolve a symlink's (or junction's) target

[![npm version](https://img.shields.io/npm/v/resolve-link-target.svg)](https://www.npmjs.com/package/resolve-link-target)

## Installation

```
<npm|yarn|pnpm> add resolve-link-target
```

## Usage

```js
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](LICENSE) © [Zoltan Kochan](https://www.kochan.io/)

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