async function

getRegistryMetadata

(__namedParameters,[object Object]): Promise<RegistryMetadata>
getRegistryMetadata returns the metadata describing the registry itself.

Examples

Get the metadata for the npm registry:
import { getRegistryMetadata } from 'query-registry';

(async () => {
    const metadata = await getRegistryMetadata();

    // Output: 'registry'
    console.log(metadata.db_name);
})();
Get the metadata for a custom registry:
import { getRegistryMetadata } from 'query-registry';

(async () => {
    const metadata = await getRegistryMetadata({ registry: 'https://example.com' });
})();