UNPKG

query-registry

Version:

Query the npm registry for packuments, manifests, packages and download counts

10 lines (8 loc) 379 B
function normalizeRawSearchCriteria({ rawSearchCriteria }) { // Convert SearchCriteria to a URL query string return Object.entries(rawSearchCriteria).filter(([, value]) => ['string', 'number'].includes(typeof value)).map(([key, value]) => `${key}=${value}`).join('&'); } export { normalizeRawSearchCriteria }; //# sourceMappingURL=normalize-raw-search-criteria.esm.js.map