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').
OptionalnpmsBase URL for the npms.io API (default: 'https://api.npms.io/v2').
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). Sent only to the registry and downloads API — never to third-party sources.
OptionalunpkgBase URL for the unpkg CDN (default: 'https://unpkg.com').
Constructor options for NpmClient.