
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
angular-libphonenumber
Advanced tools
Nathan Hammond's libphonenumber ported to an angular filter
Info | Badges |
---|---|
Version | |
License | |
Testing | |
Quality |
angular-libphonenumber is an angular directive that can be used as an input mask.
By default, all numbers are formatted in US format, but the format can be set with
the country-code
descriptor. It uses
nathanhammond/libphonenumber as a formatter
for phone number's, which calls
Google's libphonenumber
to format numbers as you type them.
View a demo here
Using Bower:
bower install --save angular-libphonenumber
You then must decide what version of libphonenumber you want. There are two included, and you must include one of them in your application before angular-libphonenumber:
<!-- Use either -->
<script src="./<path_to_bower_components>/angular-libphonenumber/dist/libphonenumber.full.js" />
<!-- OR -->
<script src="./<path_to_bower_components>/angular-libphonenumber/dist/libphonenumber.js" />
<!-- THEN -->
<script src="./<path_to_bower_components>/angular-libphonenumber/dist/angular-libphonenumber.min.js" />
Then include it in your angular application:
angular.module('myModule', ['cwill747.phonenumber']);
<input type="text" ng-model="countrycode" />
<input type="text" ng-model="phoneNumber" phone-number country-code="countrycode" />
If you are having any questions or issues getting things to work, you can:
Project's issue on GitHub should be used discuss bugs and features.
We welcome any contributions to the project. Please check the CONTRIBUTING.md for contribution guidelines.
Check out our contributors here
npm install -g gulp karma
npm install
while current directory is angular-libphonenumber repogulp
- this will run jshint
, test
, and build
targetsFAQs
Nathan Hammond's libphonenumber ported to an angular filter
The npm package angular-libphonenumber receives a total of 322 weekly downloads. As such, angular-libphonenumber popularity was classified as not popular.
We found that angular-libphonenumber demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.