Finds a specific district by its name.
The name of the district.
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 Copy
import { getDistrictByName } from 'nepali-address';const district = getDistrictByName('Kathmandu');// → { id: 306, name: 'Kathmandu', ... }const missing = getDistrictById('Unknown District');// → undefined
Finds a specific district by its name.