Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awesome-phonenumber

Package Overview
Dependencies
Maintainers
1
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-phonenumber - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc