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

Recommandation/Request (getCountryCode) #30

Open
elephantcode225 opened this issue Dec 11, 2024 · 2 comments
Open

Recommandation/Request (getCountryCode) #30

elephantcode225 opened this issue Dec 11, 2024 · 2 comments

Comments

@elephantcode225
Copy link

Hello I really liked it.
Can you add a function/ouput to get only the country code ?

@juanjotorres90
Copy link
Owner

Hi!
Thank you for your interest in improving this library.

I guess you would like an output emitter similar to "currentValue" but only for the country code (e.g.: '+225') right?

Captura de pantalla 2024-12-11 a las 19 07 38

@ibraweb
Copy link

ibraweb commented Dec 17, 2024

With a regex, you can easily retrieve the first 4 characters returned by currentValue.

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

3 participants