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
With many websites today asking ... numbers, and that's what libphonenumber-js is. Smaller footprint: 145 kB (65 kB code + 80 kB sufficient metadata) vs the original Google's 550 kB (350 kB code + 200 kB full metadata). Comes with TypeScript definitions....
Starred by 3K users
Forked by 211 users
Languages JavaScript 98.2% | HTML 1.7%
Videos
GitHub
github.com › catamphetamine › libphonenumber-js › blob › master › types.d.ts
libphonenumber-js/types.d.ts at master · catamphetamine/libphonenumber-js
export type NumberType = undefined | 'PREMIUM_RATE' | 'TOLL_FREE' | 'SHARED_COST' | 'VOIP' | 'PERSONAL_NUMBER' | 'PAGER' | 'UAN' | 'VOICEMAIL' | 'FIXED_LINE_OR_MOBILE' | 'FIXED_LINE' | 'MOBILE';
Author catamphetamine
GitHub
github.com › ruimarinho › google-libphonenumber
GitHub - ruimarinho/google-libphonenumber: The up-to-date and reliable Google's libphonenumber package for node.js. · GitHub
The "As You Type" formatter is a specialized tool that show the formatting progress as it attempts to discover the right format for the given number. It requires registering every keystroke (input digit) on a new instance of the AsYouTypeFormatter as shown below. // Require `AsYouTypeFormatter`. const AsYouTypeFormatter = require('google-libphonenumber').AsYouTypeFormatter; const formatter = new AsYouTypeFormatter('US'); console.log(formatter.inputDigit('2')); // => 2 console.log(formatter.inputDigit('0')); // => 20 console.log(formatter.inputDigit('2')); // => 202 console.log(formatter.inputD
Starred by 1.5K users
Forked by 155 users
Languages JavaScript
GitHub
github.com › telefonicaid › libphonenumber-js
GitHub - telefonicaid/libphonenumber-js: Builds a compact javascript version of libphonenumber without requiring to use Closure · GitHub
Builds a compact javascript version of libphonenumber without requiring to use Closure - telefonicaid/libphonenumber-js
Starred by 3 users
Forked by 5 users
Languages Shell 72.2% | JavaScript 27.8%
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%
GitHub
github.com › telefonicaid › libphonenumber-js › blob › master › README.md
libphonenumber-js/README.md at master · telefonicaid/libphonenumber-js
Google provides a libphonenumber version for Javascript however it's implemented using Google's Closure framework, which allows the Closure compiler to compress the generated code greatly, since methods not used are removed and those used get ...
Author telefonicaid
GitHub
github.com › patw0929 › libphonenumber-js-utils
GitHub - patw0929/libphonenumber-js-utils
Add libphonenumber-js-utils to the package dependency. ... The functions will be available in window.intlTelInputUtils. ... Get the type of number entered like FIXED_LINE, MOBILE, etc.
Starred by 5 users
Forked by 13 users
Languages JavaScript 90.6% | Shell 9.4% | JavaScript 90.6% | Shell 9.4%
GitHub
github.com › google › libphonenumber › blob › master › javascript › README.md
libphonenumber/javascript/README.md at master · google/libphonenumber
If the phone number metadata in the XML format has changed resources/PhoneNumberMetadata.xml run the following commands to regenerate metadata.js and metadatafortesting.js: ... Run the Closure Compiler to get your changes syntax and type checked.
Author google
GitHub
github.com › catamphetamine › libphonenumber-js › blob › master › index.d.ts
libphonenumber-js/index.d.ts at master · catamphetamine/libphonenumber-js
} from './types.d.js'; · export { MetadataJson, Examples, E164Number, CountryCallingCode, CountryCode, CarrierCode, NationalNumber, Extension, ParseError, // `FormatNumberOptions` export is deprecated. // It's still here just due to legacy compatibility. // https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/174#note_2380633424 ·
Author catamphetamine
UNPKG
unpkg.com › browse › @botique › libphonenumber-js@1.0.27 › README.md
botique/libphonenumber-js/README.md
* `--types ...` argument may be passed instead of `--extended` to only include the precise phone number type regular expressions for a specific set of phone number types (a comma-separated list, e.g. `--types mobile,fixed_line`). [The complete list of phone number types](https://github.com/catamphetamine/libphonenumber-js/blob/master/source/tools/generate.js#L6-L18).
GitHub
github.com › catamphetamine › libphonenumber-js › blob › master › CHANGELOG.md
libphonenumber-js/CHANGELOG.md at master · catamphetamine/libphonenumber-js
The applications that're using it should do npm install libphonenumber-metadata-generator --save-dev and then use the new libphonenumber-metadata-generator command instead of the old one (only the name changed). See instructions. Refactored AsYouType formatter. Fixed AsYouType formatter not formatting numbers in some cases like, for example, certain types of Argentinian mobile numbers.
Author catamphetamine
GitHub
github.com › Bunlong › libphonenumbers
GitHub - Bunlong/libphonenumbers: JavaScript port of Google's libphonenumber library for parsing, formatting, and validating international phone numbers in Node.js. · GitHub
// Create an instance of PhoneNumberUtil const phoneUtil = require('libphonenumbers').PhoneNumberUtil.getInstance(); // Parse number with US country code and keep raw input const number = phoneUtil.parseAndKeepRawInput('202-456-2121', 'US'); // Get type of phone number console.log(phoneUtil.getNumberType(number)); // 2 // FIXED_LINE_OR_MOBILE
Starred by 12 users
Forked by 2 users
Languages JavaScript
UNPKG
unpkg.com › browse › libphonenumber-js@1.6.0 › README.md
libphonenumber-js/README.md
* `--types ...` argument may be passed instead of `--extended` to only include the precise phone number type regular expressions for a specific set of phone number types (a comma-separated list, e.g. `--types mobile,fixed_line`). [The complete list of phone number types](https://github.com/catamphetamine/libphonenumber-js/blob/master/source/tools/generate.js#L6-L18).
GitHub
github.com › telefonicaid › libphonenumber-js › blob › master › index.d.ts
libphonenumber-js/index.d.ts at master · telefonicaid/libphonenumber-js
Builds a compact javascript version of libphonenumber without requiring to use Closure - libphonenumber-js/index.d.ts at master · telefonicaid/libphonenumber-js
Author telefonicaid
GitHub
github.com › nathanhammond › libphonenumber
GitHub - nathanhammond/libphonenumber: Google's libphonenumber as an easily included JavaScript library. · GitHub
I've extracted/ported/written code based on vendor/libphonenumber/javascript/i18n/phonenumbers/demo.js and turned that into libphonenumber.js at the root of this project.
Starred by 80 users
Forked by 40 users
Languages JavaScript 92.0% | Shell 8.0%
GitHub
github.com › catamphetamine › libphonenumber-js › blob › master › package.json
libphonenumber-js/package.json at master · catamphetamine/libphonenumber-js
"prepublishOnly": "npm run metadata:generate && npm run typescript:generate-country-codes-list && crlf --set=LF metadata.*.json && npm-run-all build test" }, "repository": { "type": "git", "url": "git+https://gitlab.com/catamphetamine/libphonenumber-js.git" }, "keywords": [ "telephone", "phone", "number", "input", "mobile", "libphonenumber" ], "author": "catamphetamine <purecatamphetamine@gmail.com>", "license": "MIT", "bugs": { "url": "https://gitlab.com/catamphetamine/libphonenumber-js/issues" }, "homepage": "https://gitlab.com/catamphetamine/libphonenumber-js#readme" }
Author catamphetamine
GitHub
github.com › google › libphonenumber › tree › master › javascript
libphonenumber/javascript at master · google/libphonenumber
Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers. - google/libphonenumber
Author google
Js
libphonenumbers.js.org
libphonenumbers: Introduction
If you are not redirected automatically, follow this link