Gathering detailed insights and metrics for react-region-flag-select
Gathering detailed insights and metrics for react-region-flag-select
npm install react-region-flag-select
Typescript
Module System
Node Version
NPM Version
73.9
Supply Chain
94.8
Quality
74.7
Maintenance
50
Vulnerability
100
License
JavaScript (90.27%)
CSS (5.21%)
HTML (4.51%)
Total Downloads
16,988
Last Day
3
Last Week
21
Last Month
44
Last Year
2,281
8 Stars
8 Commits
3 Forks
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.1.2
Package Id
react-region-flag-select@0.1.2
Unpacked Size
6.44 MB
Size
1.00 MB
File Count
265
NPM Version
6.7.0
Node Version
11.10.0
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
61.5%
21
Compared to previous week
Last month
-78.2%
44
Compared to previous month
Last year
-52.3%
2,281
Compared to previous year
1
5
Dynamic and custom react country, state, city select drop-down with flag and phone code options
A Node.js React package that gives dynamic and custom country, state, city select drop down with flag and phone code option. RegionSelect gives the max possible options to use country, state, city select dropdown with diffrent possible combinations of all with optional country flag and phone code options. RegionSelect can be used to show all country name list dropdown and also custom options of country name using its country code like 'IN' for india, 'AS' for American Samoa, 'AU' for australia etc.
The package can be installed via NPM:
npm install react-region-flag-select --save
react-region-flag-select can be imported as follows
1var RegionSelect = require('react-region-flag-select'); 2 3OR 4 5import RegionSelect from 'react-region-flag-select'; 6
All country Codes Can Be Check Here: Country Codes
1 <RegionSelect />
1 2 handleChangeMethod=(data)=>{ 3 console.log('Result',data); 4 } 5 6 7 <RegionSelect 8 handleChange={this.handleChangeMethod} 9 />
1import React, {Component} from 'react'; 2import RegionSelect from 'react-region-flag-select'; 3 4class App extends Component { 5 6 7 handleChangeMethod=(data)=>{ 8 console.log('Result',data); 9 } 10 render() { 11 return ( 12 <RegionSelect 13 handleChange={this.handleChangeMethod} 14 /> 15 ); 16 } 17} 18 19export default App;
1 <RegionSelect 2 isFlag={false} />
1 <RegionSelect 2 isPhoneCode={false} />
1 <RegionSelect 2 isCity={false}/>
1 <RegionSelect 2 isState={false} />
1 <RegionSelect 2 isState={false} 3 countryCode={'IN'}/>
1 <RegionSelect 2 isCountry={false} />
1 <RegionSelect 2 isCountry={false} 3 countryCode={'IN'}/>
1 <RegionSelect 2 countryOnly={true} />
1 <RegionSelect 2 countryOnly={true} 3 selectedCountryCode={'IN'} />
1 <RegionSelect 2 stateOnly={true} />
1 <RegionSelect 2 stateOnly={true} 3 countryCode={'IN'} />
1 <RegionSelect 2 cityOnly={true} />
1 <RegionSelect 2 cityOnly={true} 3 countryCode={'IN'} />
1 <RegionSelect 2 customCountryOnly={true} 3 customCountryCode={['IN','AS','AU']}/>
1 <RegionSelect 2 customCountryOnly={true} 3 customCountryCode={['IN','AS','AU']} 4 selectedCountryCode={'IN'} />
1 {"countryData": 2 { 3 "data": { 4 "id": 101,"sortname":"IN","name":"India","phoneCode":91 5 } 6 }, 7 "stateData":{ 8 "data": { 9 "id": "10","name":"Delhi","country_id":"101" 10 } 11 }, 12 "cityData":{ 13 "data": { 14 "id": "707","name":"New Delhi","state_id":"10" 15 } 16 } 17 }
1 isFlag: true, 2 isPhoneCode: true, 3 customCountryCode: [], 4 countryCode: '', 5 stateOnly: false, 6 countryOnly: false, 7 cityOnly: false, 8 customCountryOnly: false, 9 isCity: true, 10 isState: true, 11 isCountry: true, 12 selectedCountryCode: ''
1 isFlag: Boolean, 2 isPhoneCode: Boolean, 3 customCountryCode: [], 4 countryCode: String, 5 stateOnly: Boolean, 6 countryOnly: Boolean, 7 cityOnly: Boolean, 8 customCountryOnly: Boolean, 9 isCity: Boolean, 10 isState: Boolean, 11 isCountry: Boolean, 12 selectedCountryCode: String, 13 handleChange: Function
MIT Licensed. Copyright (c) Gaurav Tanwar 2019.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
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
no SAST tool detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-27
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