libphonenumber-js
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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 |
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
1183215
3188
171