nepali-address - v1.0.5
    Preparing search index...

    Function getProvinceByISOCode

    • Finds a province by its ISO 3166-2:NP code.

      Parameters

      • isoCode: string

        The ISO 3166-2:NP code (e.g., "NP-P3").

      Returns Province | undefined

      The province object if found, otherwise undefined.

      import { getProvinceByISOCode } from 'nepali-address';

      const province = getProvinceByISOCode("NP-P3");
      // → { id: 3, name: 'Bagmati Province', iso_code: 'NP-P3', ... }

      const missing = getProvinceByISOCode("NP-P9");
      // → undefined