awesome-phonenumber
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"author": "Gustaf Räntilä <g.rantila@gmail.com>", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -0,7 +1,11 @@ | ||
[![npm version][npm-image]][npm-url] | ||
# Awesome phonenumber parser | ||
This library is a pre-compiled version of Google's `libphonenumber`, with a slightly simpler interface. It has a minimal footprint - is by far the smallest libphonenumber-based library available on npmjs (other libraries are orders of magnitude larger!), and has no dependencies. | ||
This library is a pre-compiled version of Google's `libphonenumber`, with a slightly simpler interface. It has a minimal footprint - is by far the smallest libphonenumber-based library available on npmjs, and has no dependencies. | ||
Uses libphonenumber v8.4.1 | ||
Uses libphonenumber v8.5.0 | ||
[![build status][travis-image]][travis-url] | ||
## Comparison with other libraries | ||
@@ -34,9 +38,10 @@ | ||
pn.isMobile( ); // -> true | ||
pn.getNumber( ); // -> '+46707123456' | ||
pn.getNumber( 'e164' ); // -> '+46707123456' (default) | ||
pn.getNumber( 'international' ); // -> '+46 70 712 34 56' | ||
pn.getNumber( 'national' ); // -> '070-712 34 56' | ||
pn.getNumber( 'rfc3966' ); // -> 'tel:+46-70-712-34-56' | ||
pn.getNumber( 'significant' ); // -> '707123456' | ||
pn.getRegionCode( ); // -> 'SE' | ||
pn.canBeInternationallyDialled( ); // -> true | ||
pn.getNumber( ); // -> '+46707123456' | ||
pn.getNumber( 'e164' ); // -> '+46707123456' (default) | ||
pn.getNumber( 'international' ); // -> '+46 70 712 34 56' | ||
pn.getNumber( 'national' ); // -> '070-712 34 56' | ||
pn.getNumber( 'rfc3966' ); // -> 'tel:+46-70-712-34-56' | ||
pn.getNumber( 'significant' ); // -> '707123456' | ||
pn.getRegionCode( ); // -> 'SE' | ||
@@ -46,2 +51,3 @@ pn.toJSON( ); // -> json blob, so that: | ||
// { | ||
// "canBeInternationallyDialled": true, | ||
// "number": { | ||
@@ -215,1 +221,6 @@ // "input": "0707123456", | ||
``` | ||
[npm-image]: https://img.shields.io/npm/v/awesome-phonenumber.svg | ||
[npm-url]: https://npmjs.org/package/awesome-phonenumber | ||
[travis-image]: https://img.shields.io/travis/grantila/awesome-phonenumber.svg | ||
[travis-url]: https://travis-ci.org/grantila/awesome-phonenumber |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248664
1035
223