ts-phonenumber - v2.0.0
    Preparing search index...

    Function loadMetadataBundle

    • Loads a metadata bundle (e.g., for a country group like DACH or EU). Bundles contain pre-compiled metadata for multiple regions in a single file.

      Parameters

      • bundleName: string

        Name of the bundle (e.g., "DACH", "EU", "G7")

      Returns Promise<MetadataBundle | undefined>

      The metadata bundle or undefined if not found

      // Load DACH bundle (DE, AT, CH)
      await loadMetadataBundle("DACH")

      // Now all DACH regions are available for sync operations
      const parsed = parseSync("+49 170 1234567")