UNPKG

libphonenumber-js

Version:

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript

12 lines (9 loc) 464 B
// Importing from a ".js" file is a workaround for Node.js "ES Modules" // importing system which is even uncapable of importing "*.json" files. import metadata from '../../metadata.min.json.js' import { AsYouType as _AsYouType } from '../../core/index.js' export function AsYouType(country) { return _AsYouType.call(this, country, metadata) } AsYouType.prototype = Object.create(_AsYouType.prototype, {}) AsYouType.prototype.constructor = AsYouType