/api/v1/dev/npmFreecache 15 menitMetadata paket npm
Versi terbaru, lisensi, jumlah dependensi, dan unduhan 7 hari terakhir untuk sebuah paket npm.
| Parameter | Lokasi | Tipe | Wajib | Keterangan |
|---|---|---|---|---|
| name | query | string | Ya | Nama paket npm (boleh bercakupan, contoh @scope/paket). |
Contoh request
curl "https://layananapirannz.web.id/api/v1/dev/npm?name=react" \
-H "Authorization: Bearer YOUR_API_KEY"Contoh respons sukses (200)
{
"data": {
"name": "react",
"latestVersion": "19.2.0",
"description": "React is a JavaScript library for building user interfaces.",
"license": "MIT",
"homepage": "https://react.dev/",
"repository": "git+https://github.com/facebook/react.git",
"keywords": [
"react"
],
"dependencyCount": 0,
"engines": {
"node": ">=0.10.0"
},
"unpackedSizeBytes": 172000,
"downloadsLastWeek": 25000000
},
"meta": {
"requestId": "…",
"endpoint": "dev.npm",
"cached": false
}
}