# @pnpm/fetcher-base

> Types for pnpm-compatible fetchers

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

## Install

```sh
npm install @pnpm/fetcher-base
pnpm add @pnpm/fetcher-base
yarn add @pnpm/fetcher-base
bun add @pnpm/fetcher-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 | 1001.2.2 |
| 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 | 3 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36524 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm, pnpm10, fetcher |

## Links

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

## Dependencies (3)

- [@pnpm/types](https://npm.io/package/@pnpm/types.md) 1001.3.0
- [@types/ssri](https://npm.io/package/@types/ssri.md) ^7.1.5
- [@pnpm/resolver-base](https://npm.io/package/@pnpm/resolver-base.md) 1005.4.1

## Recent versions

- 1001.2.2 (latest) — 2026-01-19
- 1001.2.4 (latest-10) — 2026-06-10
- 11.2.1 (latest-6) — 2022-07-05
- 8.0.2 (pnpm-temp) — 2020-06-22
- 1001.2.3 — 2026-05-06
- 1001.2.1 — 2025-12-30
- 1001.2.0 — 2025-12-23
- 1001.1.0 — 2025-12-15
- 1001.0.6 — 2025-12-08
- 1001.0.5 — 2025-11-20
- 1001.0.4 — 2025-11-12
- 1001.0.3 — 2025-11-09
- 1001.0.2 — 2025-10-21
- 1001.0.1 — 2025-09-12
- 1001.0.0 — 2025-07-31
- … 89 more at https://npm.io/package/@pnpm/fetcher-base/versions

## README

# @pnpm/fetcher-base

> Types for pnpm-compatible fetchers

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

## Installation

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

## Usage

Here's a template for a fetcher using types from `@pnpm/fetcher-base`:

```ts
import { Resolution } from '@pnpm/resolver-base'
import {
  FetchOptions,
  FetchResult,
} from '@pnpm/fetcher-base'

export async function demoFetcher (
  resolution: Resolution,
  targetFolder: string,
  opts: FetchOptions,
): Promise<FetchResult> {
  // ...
  return {
    filesIndex,
    tempLocation,
  }
}
```

## License

MIT

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