Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple countries can have the same country calling code #24

Open
jtara1 opened this issue Nov 23, 2022 · 0 comments
Open

Multiple countries can have the same country calling code #24

jtara1 opened this issue Nov 23, 2022 · 0 comments

Comments

@jtara1
Copy link

jtara1 commented Nov 23, 2022

Use case is USA and Canada

So this code is broken

const countryCodes = require('country-codes-list')

let b  = countryCodes.customList('countryCallingCode', '{countryCode}')
b[1] // yields 'DO'

one solution is to do map one country calling code to many country codes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant