@squawk
    Preparing search index...
    • Asynchronously loads, decompresses, and parses the bundled aircraft registry dataset. Returns the same RegistryDataset shape as the Node entry point exports as usBundledRegistry.

      Handles servers that advertise transport-level gzip via Content-Encoding: gzip (in which case fetch() decodes the body automatically) as well as servers that serve the .gz as opaque bytes.

      import { loadUsBundledRegistry } from '@squawk/icao-registry-data/browser';
      import { createIcaoRegistry } from '@squawk/icao-registry';

      const dataset = await loadUsBundledRegistry();
      const registry = createIcaoRegistry({ data: dataset.records });

      To host the asset on your own CDN or to override the URL for any other reason, pass an explicit url:

      const dataset = await loadUsBundledRegistry({
      url: 'https://your-cdn.example/icao-registry.json.gz',
      });

      Parameters

      Returns Promise<RegistryDataset>