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
Removed parseNumber()'s fromCountry parameter used for parsing IDD prefixes: now it uses defaultCountry instead. formatNumber()'s fromCountry paramete
parseNumber()'s fromCountry parameter used for parsing IDD prefixes: now it uses defaultCountry instead. formatNumber()'s fromCountry parameter stays and is not removed.Optimized metadata a bit: using 0 instead of null/false and 1 instead of true.
0 instead of null/false and 1 instead of true.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added support for IDD prefixes — parse() now parses IDD-prefixed phones if fromCountry option is passed, format() now has an IDD format.
parse() now parses IDD-prefixed phones if fromCountry option is passed, format() now has an IDD format.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Now these are the default ones, and parse() and format() names are considered deprecated. The rationale is that parse() and format() function names ar…
Added parseNumber() and formatNumber() aliases for parse() and format(). Now these are the default ones, and parse() and format() names are considered deprecated. The rationale is that parse() and format() function names are too unspecific and can clash with other functions declared in a javascript file. And also searching in a project for parseNumber and formatNumber is easier than searching in a project for parse and format.
parseRFC3966() and formatRFC3966() non-custom exports.Nothing published for this version
Nothing published for this version
parse() is now more forgiving when parsing invalid international numbers. E.g. parse('+49(0)15123020522', 'DE') doesn't return {} and instead removes
parse() is now more forgiving when parsing invalid international numbers. E.g. parse('+49(0)15123020522', 'DE') doesn't return {} and instead removes the invalid (0) national prefix from the number.Nothing published for this version
Nothing published for this version
Added PhoneNumberSearch class for asynchronous phone number search.
PhoneNumberSearch class for asynchronous phone number search.Added findPhoneNumbers function.
findPhoneNumbers function.Nothing published for this version
Nothing published for this version
Added parseRFC3966 and formatRFC3966 functions which are exported.
parseRFC3966 and formatRFC3966 functions which are exported.Nothing published for this version
Fixed RFC3966 format not prepending tel: to the output.
RFC3966 format not prepending tel: to the output.
{ possible: true } option to { extended: true } and the result is now more verbose (see the README).possible_lengths property in metadata: metadata generated using previous versions of the library should be re-generated with then new version.getPhoneCode name is deprecated, use getCountryCallingCode instead.
{ possible: true } option for parse() for parsing "possible numbers" which are not considered valid (like Google's demo does). E.g. parse('+71111111111', { possible: true }) === { countryCallingCode: '7', phone: '1111111111', possible: true } and format({ countryCallingCode: '7', phone: '1111111111' }, 'E.164') === '+71111111111'.
getPhoneCode name is deprecated, use getCountryCallingCode instead.getPhoneCodeCustom name is deprecated, use getCountryCallingCodeCustom instead.AsYouType.country_phone_code renamed to AsYouType.countryCallingCode (but no one should have used that property).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
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
Nothing published for this version
Removed all previously deprecated stuff: all underscored exports (is_valid_number, get_number_type and as_you_type), lowercase exports for asYouType a…
country: string argument is passed to parse() now it becomes "the default country" rather than "restrict to country" ("restrict to country" option is gone).
parse() options argument changed: it's now an undocumented feature and can have only a single option inside — defaultCountry: string — which should be passed as a string argument instead.is_valid_number, get_number_type and as_you_type), lowercase exports for asYouType and asYouTypeCustom (use AsYouType and AsYouTypeCustom instead), "International_plaintext" format (use "E.164" instead).parse(), isValidNumber(), getNumberType() and format() no longer accept undefined phone number argument: it must be either a string or a parsed number object having a string phone property.Added formatExtension(number, extension) option to format()
formatExtension(number, extension) option to format()Nothing published for this version
asYouType name is deprecated, use AsYouType instead (same goes for asYouTypeCustom).
asYouType name is deprecated, use AsYouType instead (same goes for asYouTypeCustom).is_valid_number, get_number_type and as_you_type names are deprecated, use camelCased names instead.International_plaintext format is deprecated, use E.164 instead.RFC3966 format for phone number URIs (tel:+1213334455;ext=123).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
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
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
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.