libphonenumber-js
Version:
A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
7 lines (6 loc) • 319 B
JavaScript
import parsePhoneNumberWithError_ from './parsePhoneNumberWithError_.js'
import normalizeArguments from './normalizeArguments.js'
export default function parsePhoneNumberWithError() {
const { text, options, metadata } = normalizeArguments(arguments)
return parsePhoneNumberWithError_(text, options, metadata)
}