You should always take a look at the documention

parsePhoneNumber returns …an instance of PhoneNumber class, or undefined if no phone number could be parsed…. And you can't expect that JSON.stringify(phoneNumber) will result in something that just contains a phone number.

And isPossiblePhoneNumber expects a string as parameter that is a valid phone number; the documentation states there:

This function is just a shortcut for a two-step process of "strictly" parsing a phone number and then calling .isPossible().

So what you want to do is either:

const contact_asset = "2022032034"
const phoneNumber = libphonenumber.parsePhoneNumber(contact_asset, 'US')

if (phoneNumber) {
  console.log(phoneNumber.isPossible());
}

Or

const contact_asset = "2022032034"
console.log(libphonenumber.isPossiblePhoneNumber(contact_asset, 'US'));
Answer from t.niese on Stack Overflow
🌐
npm
npmjs.com › package › libphonenumber-js
libphonenumber-js - npm
1 week ago - A simpler and smaller rewrite of Google Android's libphonenumber library in javascript/TypeScript. Parse and format personal phone numbers. ... If you’re trying to build a React component with it, take a look at react-phone-number-input.
      » npm install libphonenumber-js
    
Published   Mar 28, 2026
Version   1.12.41
Author   catamphetamine
🌐
CodeSandbox
codesandbox.io › s › react-demo-libphonenumber-js-max-j25qj
react-demo-libphonenumber-js-max - CodeSandbox
September 25, 2021 - react-demo-libphonenumber-js-max by famgrs using @material-ui/core, react, react-dom, react-phone-number-input, react-scripts
Published   Sep 25, 2021
Author   famgrs
Discussions

libphonenumber-js evaluates good phone number as false
I'm stumped. I've messed around with this for a while and it doesn't make sense. libphonenumber-js does not validate a phone number that should be a valid number. It returns 'false' every time. This More on stackoverflow.com
🌐 stackoverflow.com
What happened to libphonenumber-js?
The author released an article explaining what happened: https://medium.com/@catamphetamine/how-github-blocked-me-and-all-my-libraries-c32c61f061d3 libphonenumber-js lives on at GitLab: https://gitlab.com/catamphetamine/libphonenumber-js More on reddit.com
🌐 r/reactjs
7
6
March 9, 2020
ES6 imports with libphonenumber-js
Currently if one wants to use react-phone-number-input and libphonenumber-js directly with ES6 imports one ends up with 2 copies libphonenumber-js in the bundle. For example /* File A: DisplayPhone... More on github.com
🌐 github.com
6
September 12, 2018
International Phone Input with React Hook Form
hey bro did you found a solution ? More on reddit.com
🌐 r/reactjs
8
2
December 26, 2023
🌐
Phrase
phrase.com › home › resources › blog › using libphonenumber for international phone numbers
Using libphonenumber for International Phone Numbers | Phrase
January 3, 2025 - Google’s open-source libphonenumber library can help us properly format phone numbers along with country codes and also validate input fields in web applications. Google has its own Clojure-based JavaScript version of the library, but we’ll be using another library, catamphetamine/libphonenumber-js, which is a simpler and smaller rewrite of Google’s libphonenumber in JavaScript.
🌐
GitHub
github.com › catamphetamine › libphonenumber-js
GitHub - catamphetamine/libphonenumber-js: A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript · GitHub
A simpler and smaller rewrite of Google Android's libphonenumber library in javascript/TypeScript. Parse and format personal phone numbers. ... If you’re trying to build a React component with it, take a look at react-phone-number-input.
Starred by 3K users
Forked by 211 users
Languages   JavaScript 98.2% | HTML 1.7%
🌐
Catamphetamine
catamphetamine.github.io › libphonenumber-js
libphonenumber-js
A simpler and smaller rewrite of Google Android's libphonenumber library.
🌐
Medium
medium.com › @rakeshostwal › country-specific-phone-number-validation-in-react-native-fcaf9645bd55
Country-Specific Phone Number Validation in React Native | by Rakesh Ostwal | Medium
October 23, 2023 - Validating phone numbers in React ... this, you can use a library like libphonenumber-js, which is a JavaScript port of Google's libphonenumber library....
🌐
npm
npmjs.com › package › react-phone-number-input
react-phone-number-input - npm
February 23, 2026 - International phone number <input/> for React. ... Alternatively, one could include it on a web page directly via a <script/> tag. This component installs libphonenumber-js dependency for phone number parsing and formatting.
      » npm install react-phone-number-input
    
Published   Feb 23, 2026
Version   3.4.16
Author   catamphetamine
Find elsewhere
🌐
npm
npmjs.com › search
libphonenumber-js - npm search
libphonenumber-js · number · ... ago5 dependents licensed under $MIT · 118,883 · A phone number input designed for the React library MUI built with libphonenumber-js ·...
🌐
Js
libphonenumbers.js.org
libphonenumbers: Introduction
If you are not redirected automatically, follow this link
🌐
CloudDefense.ai
clouddefense.ai › code › javascript › example › libphonenumber-js
Top 10 Examples of <!-- -->libphonenumber-js<!-- --> code in Javascript | CloudDefense.AI
_onSubmit() { // hack for issue with phonenumber lib - https://github.com/bl00mber/react-phone-input-2/issues/10 let phone = this.phoneNumber.state.formattedNumber; // remove formatting from phone number phone = "+" + phone.replace(/\D+/g, ""); // get dial code from phone number const formatter = new asYouType(); formatter.input(phone); const phoneCode = formatter.country_phone_code; //format balance let balance; const web3 = web3Service.getWeb3(); if (this.props.balanceUnformatted) { balance = web3.fromWei(this.props.balanceUnformatted, 'ether').toNumber(); } // check that phone number is valid if (!isValidPhoneNumber(phone) && phone !== "+71111111111") { this.setState({ fetching: false, errorMessage: "Phone number is invalid", phoneError: true }); return; };
🌐
Medium
chaim-zalmy-muskal.medium.com › react-native-textinput-for-phone-numbers-97bdbef2b6bd
React-Native TextInput For Phone Numbers | by Zalmy Muskal | Medium
July 17, 2020 - First install the libraries npm install @react-native-community/picker — save or yarn add @react-native-community/picker then cd ios/ && pod install · npm install libphonenumber-js --save or yarn add libphonenumber-js
🌐
jsDelivr
jsdelivr.com › package › npm › react-libphonenumber
react-libphonenumber CDN by jsDelivr - A CDN for npm and GitHub
June 22, 2017 - A free, fast, and reliable CDN for react-libphonenumber. React Lib Phone Number
Published   Jun 22, 2017
🌐
CodeSandbox
codesandbox.io › s › libphonenumber-js-4gcg3
libphonenumber-js - CodeSandbox
September 23, 2021 - libphonenumber-js by betbevn using libphonenumber-js, react, react-dom, react-scripts
Published   Sep 22, 2021
Author   betbevn
🌐
UNPKG
unpkg.com › browse › libphonenumber-js@1.6.0 › README.md
libphonenumber-js/README.md
This is just an alias for `new AsYouType(country, metadata).input(value)`. Can be used for building a phone number input component (e.g. [react-phone-number-input](https://github.com/catamphetamine/react-phone-number-input/)). ```js formatIncompletePhoneNumber('8800555', 'RU') === '8 (800) ...
🌐
GitHub
github.com › catamphetamine › react-phone-number-input › issues › 184
ES6 imports with libphonenumber-js · Issue #184 · catamphetamine/react-phone-number-input
September 12, 2018 - Currently if one wants to use react-phone-number-input and libphonenumber-js directly with ES6 imports one ends up with 2 copies libphonenumber-js in the bundle. For example /* File A: DisplayPhoneNumber.jsx */ // Imports the requested E...
Author   Huulivoide
🌐
GitHub
github.com › catamphetamine › react-phone-number-input
GitHub - catamphetamine/react-phone-number-input: React component for international phone number input
International phone number <input/> for React. ... Alternatively, one could include it on a web page directly via a <script/> tag. This component installs libphonenumber-js dependency for phone number parsing and formatting.
Starred by 959 users
Forked by 195 users
Languages   JavaScript 86.1% | HTML 12.2% | CSS 1.7% | JavaScript 86.1% | HTML 12.2% | CSS 1.7%
🌐
CodeSandbox
codesandbox.io › examples › package › libphonenumber-js
libphonenumber-js examples - CodeSandbox
Use this online libphonenumber-js playground to view and fork libphonenumber-js example apps and templates on CodeSandbox.
🌐
GitHub
github.com › google › libphonenumber
GitHub - google/libphonenumber: Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. · GitHub
Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. - google/libphonenumber
Starred by 17.9K users
Forked by 2.2K users
Languages   C++ 53.4% | Java 29.9% | JavaScript 15.8% | CMake 0.4% | C 0.2% | Closure Templates 0.1%