Skip to content

Commit 7141598

Browse files
committed
Add code comment linking to npm search API docs
1 parent f4959db commit 7141598

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/plugins/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ async function fetchPackages(keywords, searchText = '', pageNumber = 0) {
159159
const text = search.join(' ');
160160

161161
try {
162+
// https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#get-v1search
162163
const initialUrl = `${baseUrl}?from=${from}&text=${text}&quality=0.5&popularity=1.0&maintenance=0.1`;
163164
const response = await fetch(initialUrl);
164165
const { total, objects } = await response.json();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy