query-registry
Version:
Query the npm registry for packuments, manifests, packages and download counts
19 lines (16 loc) • 473 B
JavaScript
import { npmRegistryDownloadsAPI } from '../data/registries.esm.js';
import { fetchFromRegistry } from './fetch-from-registry.esm.js';
async function fetchDownloadsFromRegistry({
endpoint,
registryDownloadsAPI = npmRegistryDownloadsAPI,
cached
}) {
return fetchFromRegistry({
endpoint,
registry: registryDownloadsAPI,
mirrors: [],
cached
});
}
export { fetchDownloadsFromRegistry };
//# sourceMappingURL=fetch-downloads-from-registry.esm.js.map