async function

getAbbreviatedPackument

(__namedParameters,[object Object]): Promise<AbbreviatedPackument>
getAbbreviatedPackument returns the abbreviated packument (package document) containing only the metadata necessary to install a package present on the registry.

Examples

Get the abbreviated packument for package query-registry from the npm registry:
import { getAbbreviatedPackument } from 'query-registry';

(async () => {
    const packument = await getAbbreviatedPackument({ name: 'query-registry' });

    // Output: 'query-registry'
    console.log(packument.name);
})();