{"id":18725878,"url":"https://github.com/homescriptone/africa-states","last_synced_at":"2025-11-11T19:30:19.955Z","repository":{"id":45338494,"uuid":"422553413","full_name":"homescriptone/africa-states","owner":"homescriptone","description":"A list of Africa States","archived":false,"fork":false,"pushed_at":"2021-12-20T09:42:22.000Z","size":46,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T15:13:04.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/homescriptone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-29T11:42:39.000Z","updated_at":"2021-12-20T09:42:25.000Z","dependencies_parsed_at":"2022-09-05T15:41:12.253Z","dependency_job_id":null,"html_url":"https://github.com/homescriptone/africa-states","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fafrica-states","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fafrica-states/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fafrica-states/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homescriptone%2Fafrica-states/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homescriptone","download_url":"https://codeload.github.com/homescriptone/africa-states/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239592974,"owners_count":19664855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-07T14:12:24.128Z","updated_at":"2025-11-11T19:30:19.901Z","avatar_url":"https://github.com/homescriptone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# africa-states\nA list of municipalities in African countries.\n\n[![issues](https://img.shields.io/github/issues/homescriptone/africa-states)](https://github.com/homescriptone/africa-states)\n[![forks](https://img.shields.io/github/forks/homescriptone/africa-states)](https://github.com/homescriptone/africa-states)\n[![stars](https://img.shields.io/github/stars/homescriptone/africa-states)](https://github.com/homescriptone/africa-states)\n[![license](https://img.shields.io/github/license/homescriptone/africa-states)](https://github.com/homescriptone/africa-states)\n[![twitter](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Fgithub.com%2Fhomescriptone%2Fafrica-states)](https://twitter.com/intent/tweet?text=Wow:\u0026url=https%3A%2F%2Fgithub.com%2Fhomescriptone%2Fafrica-states)\n\n\n## Installation\nFirst, install the package : \n```sh\n  // using npm\n  npm install https://github.com/homescriptone/africa-states\n  \n  or\n  \n  // using yarn\n  yarn add https://github.com/homescriptone/africa-states\n```\n\n## Usage\n```js\n  import StateManager from '@homescriptone/africa-states'\n\n  //Instantiate the StateManager\n  const state_obj = new StateManager();\n  \n  //Get all states\n  let all_states = state_obj.get_all_states();\n\n  //Get state from a specific country\n  let benin_states = state_obj.get_state('BJ');\n  let togo_states  = state_obj.get_state('TG'); \n```\n\n## List of states names accepted\n\n| Country          \t  | Short Identifier \t  |\n|------------------\t  |------------------ |\n| 🇧🇯 Benin         \t| BJ               \t|\n| 🇹🇬 Togo          \t| TG               \t|\n| 🇨🇮 Cote d'Ivoire \t| CI               \t|\n| 🇧🇫 Burkina-Faso \t| BF               \t|\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nFeel free to add states of your country by following the format already defined.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[Apache](http://www.apache.org/licenses/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomescriptone%2Fafrica-states","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomescriptone%2Fafrica-states","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomescriptone%2Fafrica-states/lists"}