NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1953 most downloaded on npm
A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
Latest stable
1.13.17
Last release 9 days ago
19 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Most releases are documented
notes for 38 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
460 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Reset default_country for "as you type" if the input is an international phone number
default_country for "as you type" if the input is an international phone number(misc) Small fix for format() when the national number is undefined
format() when the national number is undefinedNothing published for this version
Better "as you type" matching: when the national prefix is optional it now tries both variants — with the national prefix extracted and without
Exporting metadata and getPhoneCode()
metadata and getPhoneCode()Nothing published for this version
Nothing published for this version
Fixed a minor bug in "as you type" when a local phone number without national prefix got formatted with the national prefix
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed a bug when country couldn't be parsed from a phone number in most cases
Added .country_phone_code readable property to "as you type" formatter
.country_phone_code readable property to "as you type" formatter"As you type" formatter's country_code argument is now default_country_code, and it doesn't restrict to the specified country anymore.
country_code argument is now default_country_code, and it doesn't restrict to the specified country anymore."As you type" formatter template fix for national prefixes (which weren't replaced with x-es)
template fix for national prefixes (which weren't replaced with x-es)"As you type" formatter now formats the whole input passed to the .input() function one at a time without splitting it into individual characters (whi
.input() function one at a time without splitting it into individual characters (which yields better performance)Nothing published for this version
Added valid, country and template fields to "as you type" instance
valid, country and template fields to "as you type" instanceNothing published for this version
Managed to reduce metadata size by another 5 KiloBytes removing redundant (duplicate) phone number type regular expressions (because there's no "get p
Managed to reduce metadata size by 10 KiloBytes removing phone number type regular expressions when leading_digits are present.
leading_digits are present.Turned out those numerous bulky regular expressions ( , , etc) are actually required to reliably infer country from country calling code and national
<fixedLine/>, <mobile/>, etc) are actually required to reliably infer country from country calling code and national phone number in cases where there are multiple countries assigned to the same country phone code (e.g. NANPA), so I've included those big regular expressions for those ambiguous cases which increased metadata size by 20 KiloBytes resulting in a total of 90 KiloBytes for the metadata.Small fix for "as you type" formatter: replacing digit placeholders (punctuation spaces) with regular spaces in the output
Fixed a bug when national prefix 1 was present in "as you type" formatter for NANPA countries (while it shouldn't have been present)
1 was present in "as you type" formatter for NANPA countries (while it shouldn't have been present)(may be a breaking change) renamed .clear() to .reset() for "as you type" formatter
.clear() to .reset() for "as you type" formatterNothing published for this version
Better asYouType (better than Google's original "as you type" formatter)
asYouType (better than Google's original "as you type" formatter)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added asYouType and isValidNumber.
asYouType and isValidNumber.* Added format function.
format function.Nothing published for this version
Initial release. parse function is working.
parse function is working.One column per quarter.