Logo Lanfrica

Tlotlo-pat/botswana-locations

Domain:

digital infrastructure

Record type:

software
Creator:
Tlo
Host:
# πŸ‡§πŸ‡Ό Botswana Locations **A lightweight NPM package for finding Botswana locations and their districts.** `botswana-locations` provides a simple, fast, and developer-friendly way to look up Botswana locations and determine the district associated with each location. It is designed for developers building web applications, mobile applications, APIs, dashboards, delivery platforms, e-commerce systems, registration forms, and other software that needs Botswana location data. The package works locally and does not require an external API, database, API key, or internet connection for location lookups. --- ## πŸ“¦ Installation Install with NPM: ```bash npm install botswana-locations ``` Using Yarn: ```bash yarn add botswana-locations ``` Using pnpm: ```bash pnpm add botswana-locations ``` --- # πŸš€ Quick Start Import the functions you need: ```js const { getDistrict, findLocation, searchLocations, getLocations, } = require("botswana-locations"); ``` Find the district of a location: ```js const district = getDistrict("Gaborone"); console.log(district); ``` Output: ```text Gaborone ``` That's all that is required to perform a location-to-district lookup. --- # ✨ Features - πŸ‡§πŸ‡Ό Botswana-focused location dataset - πŸ“ Location-to-district lookup - πŸ”Ž Location searching - πŸ”€ Case-insensitive lookups - πŸ” Partial text searching - ⚑ Fast local lookups - πŸ“΄ Offline-friendly - 🌐 No external API required - πŸ”‘ No API key required - πŸ’Ύ No database required - πŸ“¦ Lightweight - 🧩 Simple JavaScript API - βš›οΈ React compatible - πŸ“± React Native compatible - πŸš€ Expo compatible - πŸ–₯️ Node.js compatible - 🌐 Express.js compatible - ⚑ Next.js compatible - πŸ› οΈ Vite compatible --- # 🎯 What Does This Package Do? The main purpose of the package is simple: ```text Location β†’ District ``` For example: ```js getDistrict("Gaborone"); ``` returns: ```text Gaborone ``` You can also retrieve the complete location record: ```js findLocation("Gaborone"); ``` which returns: ```js { name: "G …