Well I guess I should have posted sooner, because as usually happens once I post I find the answer.

I only stumbled upon this while using JSFiddle. I noticed that they had dependencies you can add, among them was the JavaScript port of libphonenumber (which I'd already tried to use). While it doesn't load correctly in JSFiddle because the connection is refused, the link still works to a minified version.

See here: Minified JavaScript of libphonenumber-js

Once I dropped this in place, and modified my code a bit, suddenly we're off to the races and everything is golden.

<script type="text/javascript" language="javascript" src="/static/js/libphonenumber-js.min.js"></script>
<script type="text/javascript">
     $(".phone-format").keyup(function () {
            var val_old = $(this).val();
            var newString = new libphonenumber.AsYouType('US').input(val_old);
            $(this).focus().val('').val(newString);
    });
</script>

I'm really still curious if I just missed something in all the searching I've done over the last couple days, because I don't feel it should have been this difficult or require this much reverse engineering to be able to find this version of the package.

Oh well, hope this helps someone!

Answer from Chockomonkey on Stack Overflow
🌐
npm
npmjs.com › package › libphonenumber-js
libphonenumber-js - npm
1 week ago - Will return undefined if country ... phoneNumber = getExampleNumber('RU', examples) phoneNumber.formatNational() === '8 (912) 345-67-89'...
      » npm install libphonenumber-js
    
Published   Mar 28, 2026
Version   1.12.41
Author   catamphetamine
🌐
Catamphetamine
catamphetamine.github.io › libphonenumber-js
libphonenumber-js
A simpler and smaller rewrite of Google Android's libphonenumber library.
🌐
GitHub
github.com › catamphetamine › libphonenumber-js
GitHub - catamphetamine/libphonenumber-js: A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript · GitHub
Will return undefined if country ... phoneNumber = getExampleNumber('RU', examples) phoneNumber.formatNational() === '8 (912) 345-67-89'...
Starred by 3K users
Forked by 211 users
Languages   JavaScript 98.2% | HTML 1.7%
🌐
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
You should also check out the port at https://github.com/lionscribe/libphonenumber-android which also supports geocoding, and only requires a one line code change. Javascript: If you don't want to use our version, which depends on Closure, there are several other options, including https://github.com/catamphetamine/libphonenumber-js - a stripped-down rewrite, about 110 KB in size - and https://github.com/seegno/google-libphonenumber - a browserify-compatible wrapper around the original unmodified library installable via npm, which packs the Google Closure library, about 420 KB in size.
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%
🌐
CodeSandbox
codesandbox.io › examples › package › libphonenumber-js
libphonenumber-js examples - CodeSandbox
Find more examples or templates · AboutA simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript14,665,313Weekly Downloads · Latest version1.12.40 · LicenseMIT · External Links · gitlab.com/catamphetamine/libphonenumber-js#readme ·
🌐
Js
libphonenumbers.js.org
libphonenumbers: Introduction
If you are not redirected automatically, follow this link
🌐
GitHub
github.com › google › libphonenumber › tree › master › javascript
libphonenumber/javascript at master · google/libphonenumber
JS port of PhoneNumberUtil does not handle all digits, only a subset (JavaScript has no equivalent to the Java Character.digit).
Author   google
🌐
npm
npmjs.com › package › google-libphonenumber
google-libphonenumber - npm
January 19, 2026 - What is the best way to use Google's libphonenumber on node.js then? If you're looking for a convenient and easy method, that's what this package is all about. ... The following is a simple phone information extraction example similar to what can be viewed on the official demo page.
      » npm install google-libphonenumber
    
Published   Jan 19, 2026
Version   3.2.44
Author   Rui Marinho
Find elsewhere
🌐
Tabnine
tabnine.com › home page › code › javascript › google-libphonenumber
google-libphonenumber JavaScript and Node.js code examples | Tabnine
origin: SodhanaLibrary/react-examples · validatePhoneNumber(phoneNumber) { /* Phone number validation using google-libphonenumber */ let valid = false; try { const phoneUtil = PhoneNumberUtil.getInstance(); valid = phoneUtil.isValidNumber(phoneUtil.parse(phoneNumber)); } catch(e) { valid = false; } if(valid) { this.setState({ message:'Phone number '+this.getValidNumber(phoneNumber)+' is valid', color:'green' }); } else { this.setState({ message:'Phone number '+phoneNumber+' is not valid', color:'red' }); } } origin: miparnisari/arg.js ·
🌐
GitHub
github.com › google › libphonenumber › blob › master › javascript › README.md
libphonenumber/javascript/README.md at master · google/libphonenumber
JS port of PhoneNumberUtil does not handle all digits, only a subset (JavaScript has no equivalent to the Java Character.digit).
Author   google
🌐
CloudDefense.ai
clouddefense.ai › code › javascript › example › google-libphonenumber
Top 10 Examples of <!-- -->google-libphonenumber<!-- --> code in Javascript | CloudDefense.AI
return (phoneControl: AbstractControl): {[key: string]: boolean} => { if (!subscribe) { subscribe = true; countryControl.valueChanges.subscribe(() => { phoneControl.updateValueAndValidity(); }); } if(phoneControl.value !== ""){ try{ const phoneUtil = libphonenumber.PhoneNumberUtil.getInstance(); let phoneNumber = "" + phoneControl.value + "", region = countryControl.value.iso, number = phoneUtil.parse(phoneNumber, region), isValidNumber = phoneUtil.isValidNumber(number); if(isValidNumber){ return null; } }catch(e){ // console.log(e); return { validCountryPhone: true }; } return {
🌐
CloudDefense.ai
clouddefense.ai › code › javascript › example › libphonenumber-js
Top 10 Examples of <!-- -->libphonenumber-js<!-- --> code in Javascript | CloudDefense.AI
Dive into secure and efficient coding practices with our curated list of the top 10 examples showcasing 'libphonenumber-js' in functional components in JavaScript.
🌐
GitHub
github.com › ruimarinho › google-libphonenumber
GitHub - ruimarinho/google-libphonenumber: The up-to-date and reliable Google's libphonenumber package for node.js. · GitHub
What is the best way to use Google's libphonenumber on node.js then? If you're looking for a convenient and easy method, that's what this package is all about. ... The following is a simple phone information extraction example similar to what can be viewed on the official demo page.
Starred by 1.5K users
Forked by 155 users
Languages   JavaScript
🌐
Ronald James
ronaldjamesgroup.com › blog › phone-numbers-in-javascript-using-e164-libphonenumber-and-microdata
Phone numbers in JavaScript using E.164, libphonenumber and Microdata | Ronald James
Originally developed for the Android operating system, Google’s libphonenumber library offers all sorts of methods and utilities for working with telephone numbers. Better still, it’s been ported from Java to Javascript, so we can use it in web or Node.js applications.
🌐
Phrase
phrase.com › home › resources › blog › using libphonenumber for international phone numbers
Using libphonenumber for International Phone Numbers | Phrase
January 3, 2025 - The libphonenumber library is Google’s ultimate formatting, parsing, and validation tool for international phone numbers. By employing this open-source library, we can avoid paid APIs that provide phone number validation. The library makes it a lot easier to format phone numbers, so they are better readable to users across the globe. The library’s JavaScript version, which we used in this tutorial, is highly efficient and can be used in multiple framework-specific plugins such as react-phone-number-input or vue-phone-number-input.
🌐
Medium
medium.com › @shivamethical › validate-mobile-number-with-their-country-codes-84e3cf2f00aa
Validate Mobile number with their country codes | by Shivam Gupta | Medium
October 18, 2018 - isValidMobile() { var phoneNumber = new libphonenumber.parsePhoneNumber(‘999999999’, ‘IN’) phoneNumber.country === ‘RU’ phoneNumber.number === ‘+78005553535’ phoneNumber.isValid() === true
🌐
UNPKG
unpkg.com › browse › libphonenumber-js@1.9.12 › README.md
libphonenumber-js/README.md
### getExampleNumber(country: string, examples: object): PhoneNumber Returns an example phone number for a [country](#country-code). Returns an instance of [`PhoneNumber`](#phonenumber) class. Will return `undefined` if `country` doesn't exist or isn't supported by this library.
🌐
cdnjs
cdnjs.com › home › libraries › libphonenumber-js
libphonenumber-js - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
A simpler (and smaller) rewrite of Google Android's popular libphonenumber library - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving over 200 billion requests each month, powered by Cloudflare.