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

Is there any way to format US number like international but keep braces ? #424

Open
AndrewEastwood opened this issue Jan 24, 2025 · 0 comments

Comments

@AndrewEastwood
Copy link

Just a silly question..

// Format number in the international format.
console.log(phoneUtil.format(number, PNF.INTERNATIONAL));
// => +1 202-456-1414

so there 202 goes without braces, but I want them to be added... and keep +1 also, and the result would be like this: +1 (202)-456-1414

Does this lib have anything like that?

Thanks

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