index.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // `parsePhoneNumber()` named export has been renamed to `parsePhoneNumberWithError()`.
  2. export { parsePhoneNumberWithError, parsePhoneNumberWithError as parsePhoneNumber } from './exports/parsePhoneNumberWithError.js'
  3. // `parsePhoneNumberFromString()` named export is now considered legacy:
  4. // it has been promoted to a default export due to being too verbose.
  5. export { parsePhoneNumber as parsePhoneNumberFromString, parsePhoneNumber as default } from './exports/parsePhoneNumber.js'
  6. export { isValidPhoneNumber } from './exports/isValidPhoneNumber.js'
  7. export { isPossiblePhoneNumber } from './exports/isPossiblePhoneNumber.js'
  8. export { validatePhoneNumberLength } from './exports/validatePhoneNumberLength.js'
  9. // Deprecated.
  10. export { findNumbers } from './exports/findNumbers.js'
  11. export { searchNumbers } from './exports/searchNumbers.js'
  12. export { findPhoneNumbersInText } from './exports/findPhoneNumbersInText.js'
  13. export { searchPhoneNumbersInText } from './exports/searchPhoneNumbersInText.js'
  14. export { PhoneNumberMatcher } from './exports/PhoneNumberMatcher.js'
  15. export { AsYouType } from './exports/AsYouType.js'
  16. export { isSupportedCountry } from './exports/isSupportedCountry.js'
  17. export { getCountries } from './exports/getCountries.js'
  18. export { getCountryCallingCode } from './exports/getCountryCallingCode.js'
  19. export { getExtPrefix } from './exports/getExtPrefix.js'
  20. export { Metadata } from './exports/Metadata.js'
  21. export { getExampleNumber } from './exports/getExampleNumber.js'
  22. export { formatIncompletePhoneNumber } from './exports/formatIncompletePhoneNumber.js'
  23. export {
  24. ParseError,
  25. parseIncompletePhoneNumber,
  26. parsePhoneNumberCharacter,
  27. parseDigits,
  28. parseRFC3966,
  29. formatRFC3966,
  30. DIGIT_PLACEHOLDER
  31. } from '../core/index.js'