# @pnpm/resolver-base

> Types for pnpm-compatible resolvers

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

## Install

```sh
npm install @pnpm/resolver-base
pnpm add @pnpm/resolver-base
yarn add @pnpm/resolver-base
bun add @pnpm/resolver-base
```

## 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 | 1005.4.1 |
| Published | 2026-01-19 |
| First published | 2018-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.12 |
| Dependencies | 1 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36514 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm, pnpm10, resolver |

## Links

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

## Dependencies (1)

- [@pnpm/types](https://npm.io/package/@pnpm/types.md) 1001.3.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1005.4.1 (latest) — 2026-01-19
- 1005.4.3 (latest-10) — 2026-06-10
- 8.1.7 (latest-6) — 2022-07-05
- 7.0.3 (pnpm-temp) — 2020-06-22
- 1.0.0 (next) — 2018-02-09
- 1005.4.2 — 2026-05-06
- 1005.4.0 — 2025-12-30
- 1005.3.3 — 2025-12-15
- 1005.3.2 — 2025-12-08
- 1005.3.1 — 2025-11-20
- 1005.3.0 — 2025-11-12
- 1005.2.0 — 2025-11-09
- 1005.1.0 — 2025-10-21
- 1005.0.1 — 2025-09-12
- 1005.0.0 — 2025-07-31
- … 79 more at https://npm.io/package/@pnpm/resolver-base/versions

## README

# @pnpm/resolver-base

> Types for pnpm-compatible resolvers

<!--@shields('npm')-->
[![npm version](https://img.shields.io/npm/v/@pnpm/resolver-base.svg)](https://www.npmjs.com/package/@pnpm/resolver-base)
<!--/@-->

## Installation

```sh
pnpm add @pnpm/resolver-base
```

## Usage

Here's a template of a resolver using types from `@pnpm/resolver-base`:

```ts
import {
  ResolveOptions,
  ResolveResult,
  WantedDependency,
} from '@pnpm/resolver-base'

export async function testResolver (
  wantedDependency: WantedDependency,
  opts: ResolveOptions,
): Promise<ResolveResult> {
  // ...
  return {
    id,
    resolution,
    package,
    latest,
    normalizedBareSpecifier,
  }
}
```

## License

MIT

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