jsdelivr_npm_top_versions
Lists ranked versions of an npm package by CDN hits or bandwidth over a chosen period, helping you compare version adoption.
Instructions
List the most popular versions of an npm package on jsDelivr.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package": "<package>"
},
"name": "jsdelivr_npm_top_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Sort by hits or bandwidth. Default: hits | |
| page | No | Page number (1-100). Default: 1 | |
| limit | No | Max results (1-100). Default: 100 | |
| period | No | Time period: floating (day|week|month|quarter|year), static (s-month|s-quarter|s-year), or date (YYYY-MM|YYYY-Qq|YYYY). Default: month | |
| package | Yes | npm package name, e.g. 'jquery' or '@popperjs/core' |