kenya-data-core
v0.1.2
Published
TypeScript SDK for Kenyan administrative data (counties, constituencies, wards) bundled as a SQLite database
Maintainers
Readme
kenya-data-core (TypeScript SDK)
Install the published package:
npm install kenya-data-coreimport { Kenya } from "kenya-data-core";
const kenya = new Kenya(); // loads the bundled data/kenya.db
const kenya2 = new Kenya({ dbPath: "/path/to/kenya.db" });
kenya.counties.list();
kenya.counties.get("Nakuru");
kenya.constituencies.inCounty("Nakuru");
kenya.wards.inConstituency("Naivasha");
kenya.dataset.version;
kenya.dataset.updatedAt;The package includes the SQLite database and is backed by the database built
from database/schema/schema.sql via better-sqlite3 — see the repository root
README and docs/sdk-design.md.
