@npmcli/agent 2.2.2
the http/https agent used by the npm cli
@npmcli/agent@2.2.2 was published on 2024-04-01. Its manifest declares 5 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/agent versions · Permanent reference to 2.2.2 · Latest release
Package specifications
| Version | 2.2.2 |
|---|---|
| License declaration | ISC |
| Published | 2024-04-01T20:25:27.623Z |
| Node.js requirement | ^16.14.0 || >=18.0.0 |
| Type declarations | Not declared |
| Runtime dependency count | 5 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 17.32 KiB |
| Published file count | 8 |
| 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 | 10 |
| Repository stars | 9 |
| Repository forks | 14 |
Install @npmcli/agent 2.2.2
npm install @npmcli/agent@2.2.2 pnpm add @npmcli/agent@2.2.2 yarn add @npmcli/agent@2.2.2
Runtime dependencies
- lru-cache ^10.0.1
- agent-base ^7.1.0
- http-proxy-agent ^7.0.0
- https-proxy-agent ^7.0.1
- socks-proxy-agent ^8.0.3
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.
- agent-base@7.1.4 — direct
- debug@4.4.3 — indirect
- http-proxy-agent@7.0.2 — direct
- https-proxy-agent@7.0.6 — direct
- ip-address@10.7.5 — indirect
- lru-cache@10.4.3 — direct
- ms@2.1.3 — indirect
- smart-buffer@4.2.0 — indirect
- socks@2.8.10 — indirect
- socks-proxy-agent@8.0.5 — direct
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.
Evidence and freshness
- https://registry.npmjs.org/%40npmcli%2Fagent/2.2.2 — retrieved 2026-10-29T08:40:19.735Z
- https://api.deps.dev/v3/systems/npm/packages/%40npmcli%2Fagent/versions/2.2.2 — retrieved 2026-10-29T08:40:20.371Z
- https://api.deps.dev/v3/systems/npm/packages/%40npmcli%2Fagent/versions/2.2.2:dependencies — retrieved 2026-10-29T08:40:20.398Z
- https://api.deps.dev/v3/projects/github.com%2Fnpm%2Fagent — retrieved 2026-10-29T08:40:20.974Z