@npmcli/package-json 5.2.1
Programmatic API to update package.json
@npmcli/package-json@5.2.1 was published on 2024-09-17. 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 ^16.14.0 || >=18.0.0.
All @npmcli/package-json versions · Permanent reference to 5.2.1 · Latest release
Package specifications
| Version | 5.2.1 |
|---|---|
| License declaration | ISC |
| Published | 2024-09-17T20:35:10.657Z |
| Node.js requirement | ^16.14.0 || >=18.0.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 | 38.60 KiB |
| Published file count | 9 |
| 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 | 65 |
| Repository stars | 103 |
| Repository forks | 18 |
Install @npmcli/package-json 5.2.1
npm install @npmcli/package-json@5.2.1 pnpm add @npmcli/package-json@5.2.1 yarn add @npmcli/package-json@5.2.1
Runtime dependencies
- glob ^10.2.2
- semver ^7.5.3
- proc-log ^4.0.0
- @npmcli/git ^5.0.0
- hosted-git-info ^7.0.0
- normalize-package-data ^6.0.0
- json-parse-even-better-errors ^3.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.
- @npmcli/git@5.0.8 — direct
- glob@10.5.0 — direct
- hosted-git-info@7.0.2 — direct
- json-parse-even-better-errors@3.0.2 — direct
- normalize-package-data@6.0.2 — direct
- proc-log@4.2.0 — direct
- semver@7.8.5 — direct
- @npmcli/promise-spawn@7.0.2 — indirect
- ini@4.1.3 — indirect
- lru-cache@10.4.3 — indirect
- npm-pick-manifest@9.1.0 — indirect
- promise-inflight@1.0.1 — indirect
- promise-retry@2.0.1 — indirect
- which@4.0.0 — indirect
- foreground-child@3.3.1 — indirect
- jackspeak@3.4.3 — indirect
- minimatch@9.0.9 — indirect
- minipass@7.1.3 — indirect
- package-json-from-dist@1.0.1 — indirect
- path-scurry@1.11.1 — indirect
- validate-npm-package-license@3.0.4 — indirect
- npm-install-checks@6.3.0 — indirect
- npm-normalize-package-bin@3.0.1 — indirect
- npm-package-arg@11.0.3 — indirect
- err-code@2.0.3 — indirect
- retry@0.12.0 — indirect
- isexe@3.1.5 — indirect
- cross-spawn@7.0.6 — indirect
- signal-exit@4.1.0 — indirect
- @isaacs/cliui@8.0.2 — indirect
- @pkgjs/parseargs@0.11.0 — indirect
- brace-expansion@2.1.7 — indirect
- spdx-correct@3.2.0 — indirect
- spdx-expression-parse@3.0.1 — indirect
- validate-npm-package-name@5.0.1 — indirect
- path-key@3.1.1 — indirect
- shebang-command@2.0.0 — indirect
- which@2.0.2 — indirect
- string-width@4.2.3 — indirect
- string-width@5.1.2 — indirect
- strip-ansi@6.0.1 — indirect
- strip-ansi@7.2.0 — indirect
- wrap-ansi@7.0.0 — indirect
- wrap-ansi@8.1.0 — indirect
- balanced-match@1.0.2 — indirect
- spdx-license-ids@3.0.24 — indirect
- spdx-exceptions@2.5.0 — indirect
- shebang-regex@3.0.0 — indirect
- isexe@2.0.0 — indirect
- emoji-regex@8.0.0 — indirect
- is-fullwidth-code-point@3.0.0 — indirect
- strip-ansi@6.0.1 — indirect
- eastasianwidth@0.2.0 — indirect
- emoji-regex@9.2.2 — indirect
- ansi-regex@5.0.1 — indirect
- ansi-regex@6.4.0 — indirect
- ansi-styles@4.3.0 — indirect
- string-width@4.2.3 — indirect
- strip-ansi@6.0.1 — indirect
- ansi-styles@6.2.3 — indirect
- ansi-regex@5.0.1 — indirect
- color-convert@2.0.1 — indirect
- emoji-regex@8.0.0 — indirect
- ansi-regex@5.0.1 — indirect
- color-name@1.1.4 — 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/5.2.1 — retrieved 2026-10-29T11:14:38.155Z
- https://api.deps.dev/v3/projects/github.com%2Fnpm%2Fpackage-json — retrieved 2026-10-29T10:25:14.352Z
- https://api.deps.dev/v3/systems/npm/packages/%40npmcli%2Fpackage-json/versions/5.2.1 — retrieved 2026-10-29T11:14:38.900Z
- https://api.deps.dev/v3/systems/npm/packages/%40npmcli%2Fpackage-json/versions/5.2.1:dependencies — retrieved 2026-10-29T11:14:38.926Z