Socket
Socket
Sign inDemoInstall

libphonenumber-js

Package Overview
Dependencies
Maintainers
1
Versions
392
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libphonenumber-js - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

7

index.common.js

@@ -8,5 +8,8 @@ 'use strict'

// exports.is_valid_number = require('./build/validate')
// exports.isValidNumber = require('./build/validate')
exports.is_valid_number = require('./build/validate')
exports.isValidNumber = require('./build/validate')
exports.as_you_type = require('./build/as you type')
exports.asYouType = require('./build/as you type')
// exports['default'] = ...

@@ -13,7 +13,15 @@ export

// export
// {
// default as is_valid_number,
// default as isValidNumber
// }
// from './source/format'
export
{
default as is_valid_number,
default as isValidNumber
}
from './source/format'
export
{
default as as_you_type,
default as asYouType
}
from './source/as you type'
{
"name": "libphonenumber-js",
"version": "0.1.0",
"version": "0.1.1",
"description": "A simpler (and smaller) rewrite of Google Android's famous libphonenumber library",

@@ -5,0 +5,0 @@ "main": "index.common.js",

@@ -19,3 +19,3 @@ # libphonenumber-js

* Weighs less than 70 KiloBytes while `libphonenumber` bundle weighs about 220 KiloBytes
* Metadata size is just about 70 KiloBytes while the original `libphonenumber` metadata size is about 200 KiloBytes
* When formatting international numbers replaces all braces, dashes, etc with spaces (because that's the logical thing to do, and leaving braces in an international number isn't)

@@ -124,3 +124,4 @@ * Doesn't parse alphabetic phone numbers like `1-800-GOT-MILK` as we don't use telephone sets in the XXIst century that much (and we have phonebooks in your mobile phones)

* Implement "As you type"
* Maybe fix the "miniumum of 3 characters" limit for "As you type" formatter
* Maybe fix braces for "As you type" formatter (don't cut off closing braces)

@@ -127,0 +128,0 @@ ## Contributing

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