Gathering detailed insights and metrics for @koterion/country_list
Gathering detailed insights and metrics for @koterion/country_list
Gathering detailed insights and metrics for @koterion/country_list
Gathering detailed insights and metrics for @koterion/country_list
A React Component for entering mobile numbers with code of choosing country.
npm install @koterion/country_list
Typescript
Module System
Node Version
NPM Version
JavaScript (87.9%)
CSS (10.75%)
HTML (1.35%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
2 Stars
88 Commits
1 Forks
1 Watchers
3 Branches
1 Contributors
Updated on Oct 31, 2019
Latest Version
3.0.0
Package Id
@koterion/country_list@3.0.0
Unpacked Size
89.95 kB
Size
43.63 kB
File Count
6
NPM Version
6.10.2
Node Version
12.9.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
24
country_list
is a React Component for entering mobile numbers with code of choosing country.
All examples on the demo page
1npm install --save @koterion/country_list
1.cntr-flag { 2 background-image: url('@koterion/country_list/dist/img/flags.png') 3}
1import CountryList from '@koterion/country_list'; 2import '@koterion/country_list/dist/styles.css'; 3 4const phone = (<CountryList />);
option | type | default | desc |
---|---|---|---|
countryAll | array | [] | Array of countries iso |
remove | boolean | false | If true remove countries using countryAll |
list | boolean | false | If true create list of country using countryAll |
flagInInput | boolean | false | If true add flags to current selector |
flagInSelect | boolean | false | If true add flags to dropdown |
geo | object | Use for checked country by ip | |
closestForm | string | form | Closest form or selector |
hasPhone | boolean | false | Using your custom phone input from inputPhoneName |
inputCountryName | string | country | Name for input with country name (auto create type=hidden ) |
inputPhoneName | string | phone | Name for input with phone number |
search | boolean | false | If true create input with name from inputCountryName , live search in country list |
select | boolean | false | If true create list like select |
required | boolean | false | If true add required for input |
countries | json | Countries in json format |
Use with delete
or list
Example:
1<CountryList delete countryAll={['ua', 'us']} /> 2<CountryList list countryAll={['ua', 'us']} />
For define country by ip we use service Sypexgeo
You can rewrite method, it option geo
by default it's object with this parameters:
1{ 2 url: 'https://api.sypexgeo.net/', 3 getIso: response => response.country.iso 4}
url
- api for service, getIso
- return country iso
Also you can use current
with current country in ISO format. Example:
1<CountryList current='ua' />
Format for custom countries
1{ 2 "name": "Afghanistan", 3 "iso": "af", 4 "code": "93" 5}, 6{ 7 "name": "Albania", 8 "iso": "al", 9 "code": "355" 10},
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More