{"id":23162075,"url":"https://github.com/devnix/ngcountrylist","last_synced_at":"2025-10-03T19:32:58.756Z","repository":{"id":148349425,"uuid":"67409284","full_name":"devnix/ngCountryList","owner":"devnix","description":"Angular country list factory based on https://github.com/fannarsh/country-list","archived":false,"fork":false,"pushed_at":"2016-09-05T11:31:13.000Z","size":21,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T04:43:18.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devnix.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-05T09:53:54.000Z","updated_at":"2019-05-12T11:12:39.000Z","dependencies_parsed_at":"2023-05-12T14:00:53.123Z","dependency_job_id":null,"html_url":"https://github.com/devnix/ngCountryList","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2FngCountryList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2FngCountryList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2FngCountryList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnix%2FngCountryList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devnix","download_url":"https://codeload.github.com/devnix/ngCountryList/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242685,"owners_count":20907134,"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-12-17T23:24:01.650Z","updated_at":"2025-10-03T19:32:58.648Z","avatar_url":"https://github.com/devnix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngCountryList\nAngular country list factory based on https://github.com/fannarsh/country-list\n\n## Examples\n\n### Require module\n\n```javascript\nangular.module('myModule', ['ngCountryList']);\n```\n\n\n### Call factory from a controller\n\n```javascript\nangular.module('myModule').controller('myController', ['$countryList', function($countryList) {\n\t\n}]);\n```\n\n## API\n\n### $countryList.getCode(name)\n\n#### Example\n```javascript\n$countryList.getCode('Spain'); // Output: 'ES'\n```\n\n### $countryList.getName(code)\n\n#### Example\n```javascript\n$countryList.getName('ES'); // Output: 'Spain'\n```\n\n### $countryList.getNames()\n\nReturns an array containing every country names.\n\n#### Example\n```javascript\n$countryList.getNames();\n```\n\n### $countryList.getCodes()\n\nReturns an array containing every country codes.\n\n#### Example\n```javascript\n$countryList.getCodes();\n```\n\n### $countryList.getData()\n\nReturns an object containing every country following the `{ \"code\": \"ES\", \"name\": \"Spain\" }` schema.\n\n#### Example\n```javascript\n$countryList.getData();\n```\n\nProudly sponsored by\n\n[![Ecomputer](http://www.ecomputer.es/imagenes/empresa/descargas/logotipo_ecomputer_alargado_azul_min.jpg)](http://www.ecomputer.es)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnix%2Fngcountrylist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevnix%2Fngcountrylist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnix%2Fngcountrylist/lists"}