# @pnpm/read-package-json

> Read a package.json

Latest version **1000.1.8** (published 2026-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pnpm/read-package-json
pnpm add @pnpm/read-package-json
yarn add @pnpm/read-package-json
bun add @pnpm/read-package-json
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1000.1.8 |
| Published | 2026-03-24 |
| First published | 2018-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.12 |
| Dependencies | 4 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 36467 |
| Maintainers | pnpmuser, zkochan |
| Keywords | pnpm, pnpm10, outdated |

## Links

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

## Dependencies (4)

- [@pnpm/error](https://npm.io/package/@pnpm/error.md) 1000.1.0
- [@pnpm/types](https://npm.io/package/@pnpm/types.md) 1001.3.0
- [load-json-file](https://npm.io/package/load-json-file.md) ^6.2.0
- [normalize-package-data](https://npm.io/package/normalize-package-data.md) ^7.0.1

## Recent versions

- 1000.1.8 (latest) — 2026-03-24
- 1000.1.9 (latest-10) — 2026-06-10
- 0.0.0-20230605-20230605142810 (dev) — 2023-06-05
- 5.0.13 (latest-6) — 2022-07-05
- 3.1.3 (pnpm-temp) — 2020-06-22
- 3.1.0 (next) — 2020-04-05
- 1000.1.7 — 2026-01-19
- 1000.1.6 — 2025-12-15
- 1000.1.5 — 2025-12-08
- 1000.1.4 — 2025-11-20
- 1000.1.3 — 2025-11-09
- 1000.1.2 — 2025-10-21
- 1000.1.1 — 2025-09-13
- 1000.1.0 — 2025-09-12
- 1000.0.11 — 2025-07-31
- … 84 more at https://npm.io/package/@pnpm/read-package-json/versions

## README

# @pnpm/read-package-json

> Read a package.json

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

## Installation

```sh
pnpm add @pnpm/read-package-json
```

## Usage

```ts
import { readPackageJson } from '@pnpm/read-package-json'

const pkgJson = await readPackageJson('package.json')
```

## API

### default: `readPackageJson(path): Promise<PackageManifest>`

### Arguments

- `path` - _String_ - path to the `package.json`

### `fromDir(path): Promise<PackageManifest>`

### Arguments

- `path` - _String_ - path to the directory with the `package.json`

## License

MIT

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