Retrieves a district by its 5-digit post code.
The 5-digit postal code (e.g., "44600").
The district object if found, otherwise undefined.
import { getDistrictByPostcode } from 'nepali-address';const district = getDistrictByPostcode("44600");// → { id: 306, name: 'Kathmandu', ... }const missing = getDistrictByPostcode("00000");// → undefined Copy
import { getDistrictByPostcode } from 'nepali-address';const district = getDistrictByPostcode("44600");// → { id: 306, name: 'Kathmandu', ... }const missing = getDistrictByPostcode("00000");// → undefined
Retrieves a district by its 5-digit post code.