OptionaldepsBase URL for the deps.dev API (default: 'https://api.deps.dev/v3').
OptionaldownloadsBase URL for the npm Downloads API (default: 'https://api.npmjs.org').
OptionaljsdelivrBase URL for the jsDelivr data API (default: 'https://data.jsdelivr.com/v1').
OptionalpackagephobiaBase URL for the Packagephobia API (default: 'https://packagephobia.com').
OptionalregistryBase URL for the npm registry (default: 'https://registry.npmjs.org').
Override for private registries or mirrors.
OptionaltokenBearer token for authenticated requests (e.g. private registry access).
Always sent to the registry. Sent to the downloads API only when it shares
the registry's origin, or when both are npm's defaults — so a private
registry token never reaches api.npmjs.org. Never sent to third-party sources.
OptionalunpkgBase URL for the unpkg CDN (default: 'https://unpkg.com').
Constructor options for NpmClient.