Interface NpmVersionDownloads

Download counts for all versions of a package over the previous 7 days.

Returned by GET /versions/{package}/last-week.

interface NpmVersionDownloads {
    downloads: Record<string, number>;
    package: string;
}

Properties

Properties

downloads: Record<string, number>

Map of version strings to their download counts

package: string

Package name