{"id":38543101,"url":"https://github.com/knowbee/rwanda","last_synced_at":"2026-01-17T07:13:08.345Z","repository":{"id":36460355,"uuid":"224995553","full_name":"knowbee/rwanda","owner":"knowbee","description":"🇷🇼This is a simple npm package that returns provinces, districts, sectors, villages and cells from Rwanda","archived":false,"fork":false,"pushed_at":"2025-08-08T10:37:31.000Z","size":871,"stargazers_count":48,"open_issues_count":1,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-23T21:11:44.101Z","etag":null,"topics":["rwanda"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rwanda","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knowbee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"knowbee","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-11-30T10:30:29.000Z","updated_at":"2025-09-28T09:23:10.000Z","dependencies_parsed_at":"2024-06-19T00:28:19.220Z","dependency_job_id":"491201da-4de7-4b19-a08f-df0bae710ad9","html_url":"https://github.com/knowbee/rwanda","commit_stats":{"total_commits":82,"total_committers":7,"mean_commits":"11.714285714285714","dds":0.2195121951219512,"last_synced_commit":"1435682537be3856bb4379f205c99d2592ca89e2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knowbee/rwanda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwanda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwanda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwanda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwanda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowbee","download_url":"https://codeload.github.com/knowbee/rwanda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowbee%2Frwanda/sbom","scorecard":{"id":564735,"data":{"date":"2025-08-11","repo":{"name":"github.com/knowbee/rwanda","commit":"52b74f80556ae35873774192203728d363144f63"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"14 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/knowbee/rwanda/release.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:17","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:27","Warn: npmCommand not pinned by hash: .github/workflows/publish.yml:24","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   5 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish.yml:9"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T14:40:10.634Z","repository_id":36460355,"created_at":"2025-08-20T14:40:10.634Z","updated_at":"2025-08-20T14:40:10.634Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rwanda"],"created_at":"2026-01-17T07:13:07.788Z","updated_at":"2026-01-17T07:13:08.334Z","avatar_url":"https://github.com/knowbee.png","language":"TypeScript","funding_links":["https://ko-fi.com/knowbee"],"categories":[],"sub_categories":[],"readme":"# rwanda\n\n[![npm](https://img.shields.io/npm/v/rwanda.svg)](https://www.npmjs.com/package/rwanda)\n[![npm](https://img.shields.io/npm/dt/rwanda.svg)](https://www.npmjs.com/package/rwanda)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)\n\nA comprehensive TypeScript/JavaScript library for accessing administrative divisions of Rwanda. This package provides type-safe access to provinces, districts, sectors, cells, and villages in Rwanda.\n\nRwanda is administratively organized into:\n- 5 Provinces (including Kigali City)\n- 30 Districts\n- 416 Sectors\n- 2,148 Cells\n- 14,837 Villages\n\n## Installation\n\n```bash\n# Using npm\nnpm install rwanda\n\n# Using yarn\nyarn add rwanda\n\n# Using pnpm\npnpm add rwanda\n```\n\n## Usage\n\n### JavaScript (CommonJS)\n\n```javascript\nconst { Provinces, Districts } = require('rwanda');\n\nconsole.log(Provinces());\n// Output: ['East', 'Kigali', 'North', 'South', 'West']\n\nconsole.log(Districts('kigali'));\n// Output: ['Gasabo', 'Kicukiro', 'Nyarugenge']\n```\n\n### TypeScript / ES Modules\n\n```typescript\nimport { Provinces, Districts, Sectors } from 'rwanda';\n\n// Get all provinces\nconst provinces: string[] = Provinces();\n\n// Get districts in Kigali\nconst kigaliDistricts: string[] = Districts('kigali');\n\n// Get sectors in Gasabo district\nconst gasaboSectors: string[] = Sectors('kigali', 'gasabo');\n```\n\n## API Reference\n\n### `Provinces(): string[]`\n\nReturns an array of all provinces in Rwanda.\n\n```typescript\nimport { Provinces } from 'rwanda';\n\nconst provinces = Provinces();\n// Returns: ['East', 'Kigali', 'North', 'South', 'West']\n```\n\n### `Districts(province?: string): string[] | undefined`\n\n- `province` (optional): Name of the province to filter districts\n\nReturns an array of districts. If a province is provided, returns only districts in that province.\n\n```typescript\nimport { Districts } from 'rwanda';\n\n// Get all districts in Rwanda\nconst allDistricts = Districts();\n\n// Get districts in Kigali\nconst kigaliDistricts = Districts('kigali');\n// Returns: ['Gasabo', 'Kicukiro', 'Nyarugenge']\n```\n\n### `Sectors(province?: string, district?: string): string[] | undefined`\n\n- `province` (optional): Name of the province\n- `district` (optional): Name of the district to filter sectors\n\nReturns sectors based on the provided filters.\n\n```typescript\nimport { Sectors } from 'rwanda';\n\n// Get all sectors in Rwanda\nconst allSectors = Sectors();\n\n// Get sectors in Gasabo district, Kigali\nconst gasaboSectors = Sectors('kigali', 'gasabo');\n```\n\n### `Cells(province?: string, district?: string, sector?: string): string[] | undefined`\n\n- `province` (optional): Name of the province\n- `district` (optional): Name of the district\n- `sector` (optional): Name of the sector to filter cells\n\nReturns cells based on the provided filters.\n\n### `Villages(province?: string, district?: string, sector?: string, cell?: string): string[] | undefined`\n\n- `province` (optional): Name of the province\n- `district` (optional): Name of the district\n- `sector` (optional): Name of the sector\n- `cell` (optional): Name of the cell to filter villages\n\nReturns villages based on the provided filters.\n\n## Type Safety\n\nThe package includes TypeScript type definitions out of the box. All functions are properly typed:\n\n```typescript\n// TypeScript will infer the return type as string[]\nconst districts: string[] = Districts('kigali');\n\n// TypeScript will show an error for invalid province names\nconst invalid = Districts('invalid'); // TypeScript error\n```\n\n## Case Insensitivity\n\nAll input parameters are case-insensitive:\n\n```typescript\n// All these are equivalent\nDistricts('kigali');\nDistricts('Kigali');\nDistricts('KIGALI');\n```\n\n## Error Handling\n\nWhen invalid parameters are provided, the functions return `undefined`:\n\n```typescript\nconst result = Districts('Nonexistent Province');\nconsole.log(result); // undefined\n```\n\n```cli\nyarn add rwanda\n```\n\n# Contributors\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/shyakadavis\"\u003e\u003cimg \n    style=\"border-radius:50%\"\n    src=\"https://github.com/shyakadavis.png\" width=\"100px;\" alt=\"Shyaka Davis\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003e\nShyaka Davis\u003c/b\u003e\u003c/sub\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Karlmusingo\"\u003e\u003cimg \n    style=\"border-radius:50%\"\n    src=\"https://github.com/Karlmusingo.png\" width=\"100px;\" alt=\"Karl MUSINGO\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003e\nKarl MUSINGO\u003c/b\u003e\u003c/sub\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/YvesIraguha\"\u003e\u003cimg \n    style=\"border-radius:50%\" src=\"https://github.com/YvesIraguha.png\" width=\"100px;\" alt=\"Yves Iraguha\u003c\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYves Iraguha\u003c/b\u003e\u003c/sub\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/abayo-luc\"\u003e\u003cimg \n    style=\"border-radius:50%\" src=\"https://github.com/abayo-luc.png\" width=\"100px;\" alt=\"Abayo Luc\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAbayo Luc\u003c/b\u003e\u003c/sub\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/oesukam\"\u003e\u003cimg\n    style=\"border-radius:50%\" src=\"https://github.com/oesukam.png\" width=\"100px;\" alt=\"Olivier Esuka\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eOlivier Esuka\u003c/b\u003e\u003c/sub\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/knowbee\"\u003e\u003cimg\n    style=\"border-radius:50%\" src=\"https://github.com/knowbee.png\" width=\"100px;\" alt=\"Igwaneza Bruce\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eIgwaneza Bruce\u003c/b\u003e\u003c/sub\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowbee%2Frwanda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowbee%2Frwanda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowbee%2Frwanda/lists"}