query-registry
Version:
Query the npm registry for packuments, manifests, packages and download counts
18 lines (16 loc) • 379 B
JavaScript
function normalizeRawAbbreviatedPackument({
rawAbbreviatedPackument
}) {
const {
'dist-tags': distTags,
name: id,
modified: modifiedAt
} = rawAbbreviatedPackument;
return { ...rawAbbreviatedPackument,
id,
distTags,
modifiedAt
};
}
export { normalizeRawAbbreviatedPackument };
//# sourceMappingURL=normalize-raw-abbreviated-packument.esm.js.map