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

    Function getDistrictByName

    • Finds a specific district by its name.

      Parameters

      • district: string

        The name of the district.

      Returns District | undefined

      The district object if found, otherwise undefined.

      import { getDistrictByName } from 'nepali-address';

      const district = getDistrictByName('Kathmandu');
      // → { id: 306, name: 'Kathmandu', ... }

      const missing = getDistrictById('Unknown District');
      // → undefined