{"id":20532542,"url":"https://github.com/navinpeiris/ng-country-select","last_synced_at":"2025-07-07T22:11:52.083Z","repository":{"id":28247131,"uuid":"31753010","full_name":"navinpeiris/ng-country-select","owner":"navinpeiris","description":"Angular module to generate an HTML select list of countries using country codes in the ISO 3166-1 standard","archived":false,"fork":false,"pushed_at":"2016-08-02T05:46:12.000Z","size":272,"stargazers_count":15,"open_issues_count":10,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T20:13:44.255Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/navinpeiris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-06T04:46:44.000Z","updated_at":"2023-06-02T14:11:43.000Z","dependencies_parsed_at":"2022-08-31T00:00:54.461Z","dependency_job_id":null,"html_url":"https://github.com/navinpeiris/ng-country-select","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navinpeiris%2Fng-country-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navinpeiris%2Fng-country-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navinpeiris%2Fng-country-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navinpeiris%2Fng-country-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navinpeiris","download_url":"https://codeload.github.com/navinpeiris/ng-country-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248363513,"owners_count":21091374,"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-16T00:15:31.276Z","updated_at":"2025-04-14T06:32:26.369Z","avatar_url":"https://github.com/navinpeiris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-country-select\n\n[![Build Status](https://travis-ci.org/navinpeiris/ng-country-select.svg?branch=master)](https://travis-ci.org/navinpeiris/ng-country-select)\n\nAngular module to generate an HTML select list of countries using country codes in the\n[ISO 3166-1 standard](https://en.wikipedia.org/wiki/ISO_3166-1).\n\nClosely resembles the behaviour of the [country_select](https://github.com/stefanpenner/country_select) ruby gem.\n\n## Install\n\nYou can install this package either with `npm` or with `bower`.\n\n### npm\n\n```shell\nnpm install ng-country-select\n```\n\nThen add the `\u003cscript\u003e` to your `index.html`:\n\n```html\n\u003cscript src=\"/node_modules/ng-country-select/dist/ng-country-select.js\"\u003e\u003c/script\u003e\n```\n\n### bower\n\n```shell\nbower install ng-country-select\n```\n\nThen add a `\u003cscript\u003e` to your `index.html`:\n\n```html\n\u003cscript src=\"/bower_components/ng-country-select/dist/ng-country-select.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nAdd `countrySelect` as a dependency for your app:\n\n```javascript\nangular.module('myApp', ['...', 'countrySelect', '...'])\n```\n\nSimple usage to get a list of countries:\n\n```html\n\u003ccountry-select\u003e\u003c/country-select\u003e\n```\n\nSupplying priority countries to be placed at the top of the list:\n\n```html\n\u003ccountry-select cs-priorities=\"AU, DE, GB, US\"\u003e\u003c/country-select\u003e\n```\n\nSupplying only certain countries:\n\n```html\n\u003ccountry-select cs-only=\"AU, DE, GB, US\"\u003e\u003c/country-select\u003e\n```\n\nDiscarding certain countries:\n\n```html\n\u003ccountry-select cs-except=\"AU, DE, GB, US\"\u003e\u003c/country-select\u003e\n```\n\nMaking the selection mandatory by removing the empty option:\n\n```html\n\u003ccountry-select cs-required\u003e\u003c/country-select\u003e\n```\n\n## License\n\nThe MIT License\n\nCopyright (c) 2015 Navin Peiris http://navinpeiris.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavinpeiris%2Fng-country-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavinpeiris%2Fng-country-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavinpeiris%2Fng-country-select/lists"}