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

    Function registerBundle

    • Synchronously registers all metadata from a bundle. Use this when you import a bundle directly.

      Parameters

      Returns void

      import DACH from "ts-phonenumber/metadata/bundles/DACH"
      import { registerBundle } from "ts-phonenumber"

      // Register all DACH countries at once
      registerBundle(DACH)

      // Now use sync API
      const parsed = parseSync("+49 170 1234567")