# @pnpm/registry.pkg-metadata-filter

> Filters the package metadata from the registry

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

## Install

```sh
npm install @pnpm/registry.pkg-metadata-filter
pnpm add @pnpm/registry.pkg-metadata-filter
yarn add @pnpm/registry.pkg-metadata-filter
bun add @pnpm/registry.pkg-metadata-filter
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1000.1.6 |
| Published | 2026-01-19 |
| First published | 2025-09-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.12 |
| Dependencies | 2 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36813 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm, pnpm10, npm, pkg-doc |

## Links

- npm: https://www.npmjs.com/package/@pnpm/registry.pkg-metadata-filter
- Repository: https://github.com/pnpm/pnpm.git#main
- Homepage: https://github.com/pnpm/pnpm/tree/main/registry/pkg-metadata-filter#readme
- Issues: https://github.com/pnpm/pnpm/issues
- Funding: https://opencollective.com/pnpm
- npm.io page: https://npm.io/package/@pnpm/registry.pkg-metadata-filter

## Dependencies (2)

- [semver](https://npm.io/package/semver.md) ^7.7.1
- [@pnpm/registry.types](https://npm.io/package/@pnpm/registry.types.md) 1000.1.4

## Recent versions

- 1000.1.6 (latest) — 2026-01-19
- 1000.1.7 (latest-10) — 2026-06-10
- 1000.1.5 — 2025-12-15
- 1000.1.4 — 2025-12-08
- 1000.1.3 — 2025-11-20
- 1000.1.2 — 2025-11-09
- 1000.1.1 — 2025-10-28
- 1000.1.0 — 2025-10-21
- 1000.0.0 — 2025-09-29

## README

# @pnpm/registry.pkg-metadata-filter

> Filters the package metadata from the registry

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

## Installation

```
pnpm add @pnpm/registry.pkg-metadata-filter
```

## Usage

```ts
import { filterPkgMetadataByPublishDate } from '@pnpm/registry.pkg-metadata-filter'

const pkgDoc = await (await fetch('https://registry.npmjs.org/is-odd')).json()

// Keep only those versions in the document that were published before Jan 1 2023.
filterPkgMetadataByPublishDate(pkgDoc, new Date('2023-01-01'))
```

## License

MIT

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