@npmcli/package-json 7.0.2
Programmatic API to update package.json
@npmcli/package-json@7.0.2 was published on 2025-11-04. Its manifest declares 7 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is ^20.17.0 || >=22.9.0.
All @npmcli/package-json versions · Permanent reference to 7.0.2 · Latest release
Package specifications
| Version | 7.0.2 |
|---|---|
| License declaration | ISC |
| Published | 2025-11-04T18:32:52.188Z |
| Node.js requirement | ^20.17.0 || >=22.9.0 |
| Type declarations | Not declared |
| Runtime dependency count | 7 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 51.64 KiB |
| Published file count | 11 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | lib/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 38 |
| Repository stars | 103 |
| Repository forks | 18 |
Install @npmcli/package-json 7.0.2
npm install @npmcli/package-json@7.0.2 pnpm add @npmcli/package-json@7.0.2 yarn add @npmcli/package-json@7.0.2
Runtime dependencies
- glob ^11.0.3
- semver ^7.5.3
- proc-log ^6.0.0
- @npmcli/git ^7.0.0
- hosted-git-info ^9.0.0
- validate-npm-package-license ^3.0.4
- json-parse-even-better-errors ^5.0.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @gar/promise-retry@1.0.3 — indirect
- @isaacs/cliui@9.0.0 — indirect
- @npmcli/git@7.0.2 — direct
- @npmcli/promise-spawn@9.0.2 — indirect
- balanced-match@4.0.4 — indirect
- brace-expansion@5.0.12 — indirect
- cross-spawn@7.0.6 — indirect
- foreground-child@3.3.1 — indirect
- glob@11.1.0 — direct
- hosted-git-info@9.0.3 — direct
- ini@6.0.0 — indirect
- isexe@2.0.0 — indirect
- isexe@4.0.0 — indirect
- jackspeak@4.2.3 — indirect
- json-parse-even-better-errors@5.0.0 — direct
- lru-cache@11.5.3 — indirect
- minimatch@10.2.6 — indirect
- minipass@7.1.3 — indirect
- npm-install-checks@8.0.0 — indirect
- npm-normalize-package-bin@5.0.0 — indirect
- npm-package-arg@13.0.2 — indirect
- npm-pick-manifest@11.0.3 — indirect
- package-json-from-dist@1.0.1 — indirect
- path-key@3.1.1 — indirect
- path-scurry@2.0.2 — indirect
- proc-log@6.1.0 — direct
- semver@7.8.5 — direct
- shebang-command@2.0.0 — indirect
- shebang-regex@3.0.0 — indirect
- signal-exit@4.1.0 — indirect
- spdx-correct@3.2.0 — indirect
- spdx-exceptions@2.5.0 — indirect
- spdx-expression-parse@3.0.1 — indirect
- spdx-license-ids@3.0.24 — indirect
- validate-npm-package-license@3.0.4 — direct
- validate-npm-package-name@7.0.2 — indirect
- which@2.0.2 — indirect
- which@6.0.1 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 10/10 — all changesets reviewed |
|---|---|
| Security-Policy | 10/10 — security policy file detected |
| Maintained | 0/10 — 1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 9/10 — license file detected |
| SAST | 9/10 — SAST tool detected but not run on all commits |
Evidence and freshness
- https://registry.npmjs.org/%40npmcli%2Fpackage-json/7.0.2 — retrieved 2026-10-29T16:45:50.478Z
- https://api.deps.dev/v3/projects/github.com%2Fnpm%2Fpackage-json — retrieved 2026-10-29T10:25:14.352Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/systems/npm/packages/%40npmcli%2Fpackage-json/versions/7.0.2 — retrieved 2026-10-29T16:45:51.237Z
- https://api.deps.dev/v3/systems/npm/packages/%40npmcli%2Fpackage-json/versions/7.0.2:dependencies — retrieved 2026-10-29T16:45:51.260Z