Fetches CDN usage statistics for this specific version from jsDelivr.
At version level, results are grouped by file by default, showing which individual files are most requested from browsers in production.
GET /package/npm/{name}@{version}/stats/{groupBy}/{period} (via data.jsdelivr.com/v1)
Group results by 'file' (default) or 'date'
Time period: 'day', 'week', 'month' (default), or 'year'
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
CDN hit counts and bandwidth breakdown by file or date
Fetches the fully resolved dependency graph for this version from deps.dev.
Unlike the semver ranges in package.json, this returns exact resolved versions
for every direct and transitive dependency, along with the dependency graph edges.
GET /systems/npm/packages/{name}/versions/{version}:dependencies (via api.deps.dev/v3)
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
Dependency nodes (with resolved versions and relation type) and graph edges
Fetches the download count for this specific version over the previous 7 days.
npm exposes version-level download counts only for last-week.
GET /versions/{package}/last-week (via api.npmjs.org)
Must be 'last-week'
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
Download point data for this version
Fetches the complete file tree of this package version from unpkg.
Returns every file and directory included in the published tarball, with individual file sizes, types, and paths — useful for auditing package contents.
GET /{name}@{version}/?meta (via unpkg.com)
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
Recursive file tree of the package
Fetches the version manifest for this specific version.
GET /{package}/{version}
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
The version manifest object
Fetches the publish size and full install size (including all transitive dependencies) for this specific version from Packagephobia.
GET /v2/api.json?p={name}@{version} (via packagephobia.com)
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
Publish and install size in bytes, file counts, and human-readable strings
Allows the resource to be awaited directly, resolving with the version manifest. Delegates to VersionResource.get.
Optionalonfulfilled: null | (value: NpmPackageVersion) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
Represents a specific version of an npm package, providing access to its manifest.
Implements
PromiseLike<NpmPackageVersion>so it can be awaited directly.Example