Interface NpmClientOptions

Constructor options for NpmClient.

interface NpmClientOptions {
    downloadsApiUrl?: string;
    registryUrl?: string;
    token?: string;
}

Properties

downloadsApiUrl?: string

Base URL for the npm Downloads API (default: 'https://api.npmjs.org').

registryUrl?: string

Base URL for the npm registry (default: 'https://registry.npmjs.org'). Override for private registries or mirrors.

token?: string

Bearer token for authenticated requests (e.g. private registry access). Not required for public registry read operations.