# @pnpm/symlink-dependency

> Symlink a dependency to node_modules

Latest version **1000.0.17** (published 2026-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pnpm/symlink-dependency
pnpm add @pnpm/symlink-dependency
yarn add @pnpm/symlink-dependency
bun add @pnpm/symlink-dependency
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1000.0.17 |
| Published | 2026-01-19 |
| First published | 2018-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.12 |
| Dependencies | 3 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36767 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm, pnpm10 |

## Links

- npm: https://www.npmjs.com/package/@pnpm/symlink-dependency
- Repository: https://github.com/pnpm/pnpm.git#main
- Homepage: https://github.com/pnpm/pnpm/tree/main/fs/symlink-dependency#readme
- Issues: https://github.com/pnpm/pnpm/issues
- Funding: https://opencollective.com/pnpm
- npm.io page: https://npm.io/package/@pnpm/symlink-dependency

## Dependencies (3)

- [@pnpm/types](https://npm.io/package/@pnpm/types.md) 1001.3.0
- [symlink-dir](https://npm.io/package/symlink-dir.md) ^6.0.5
- [@pnpm/core-loggers](https://npm.io/package/@pnpm/core-loggers.md) 1001.0.9

## Recent versions

- 1000.0.17 (latest) — 2026-01-19
- 1000.0.20 (latest-10) — 2026-06-18
- 900.0.1 (latest-9) — 2024-12-27
- 4.0.14 (latest-6) — 2022-07-05
- 3.0.9 (pnpm-temp) — 2020-07-20
- 2.0.0-0 (next-major) — 2019-03-04
- 1000.0.19 — 2026-06-10
- 1000.0.18 — 2026-05-27
- 1000.0.16 — 2025-12-15
- 1000.0.15 — 2025-12-08
- 1000.0.14 — 2025-11-20
- 1000.0.13 — 2025-11-09
- 1000.0.12 — 2025-10-21
- 1000.0.11 — 2025-09-12
- 1000.0.10 — 2025-07-23
- … 84 more at https://npm.io/package/@pnpm/symlink-dependency/versions

## README

# @pnpm/symlink-dependency

> Symlink a dependency to node_modules

## Installation

```
pnpm install @pnpm/symlink-dependency
```

## Usage

```ts
import { symlinkDependency } from '@pnpm/symlink-dependency'

await symlinkDependency('/home/src/foo', '/home/src/my-project/node_modules', 'foo')
//> { reused: false }
```

## License

MIT

---
_Source: https://npm.io/package/@pnpm/symlink-dependency · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
