libphonenumber-js
JavaScript and TypeScript library for parsing, formatting and validating personal phone numbers, rewritten from Google's libphonenumber.
catamphetamine.gitlab.io/libphonenumber-js/repository
libphonenumber-js parses, formats and validates personal phone numbers in JavaScript and TypeScript. It is a rewrite of Google’s libphonenumber and reuses Google’s metadata. The package ships several metadata sets, min, max, mobile and a custom one, so a project can choose the set that matches its bundle size and validation needs.
Worth knowing
The primary repository is on GitLab, and the GitHub repository is a backup.
Identity
- Status
- Active
- Maintainer
- catamphetamine3
- Maintained by
- Individual
- First release
- 20164
Rendering and deploy
- Runs as
- In the browser2
- Install with
- npm, cdn2
Releases
Adoption
Sources
- 2026-11-16: links
catamphetamine.gitlab.io/libphonenumber-js/ - 2026-11-16: links, Categories, Runs as, Install with
github.com/catamphetamine/libphonenumber-js/blob/master/README.md - 2026-11-16: Maintainer
github.com/catamphetamine/libphonenumber-js/blob/master/LICENSE - 2026-11-16: First release, Last release
registry.npmjs.org/libphonenumber-js - 2026-11-16: Written in, License, GitHub stars
api.github.com/repos/catamphetamine/libphonenumber-js - 2026-11-16: Current major version
registry.npmjs.org/libphonenumber-js/latest - 2026-11-16: Contributors
api.github.com/repos/catamphetamine/libphonenumber-js/contributors?per_page=1 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/libphonenumber-js - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/libphonenumber-js