1.1.2 • Published 6 years ago

indicative-phone v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

indicative Phone Validator and Sanitizor

Easy phone number validation, parsing and formatting for indicative.

Installation

$ npm i indicative-phone --save

or

$ yarn add indicative-phone

Validation example

See examples/validations.js

Supported types:

  • premium_rate
  • toll_free
  • shared_cost
  • voip
  • personal_number
  • pager
  • uan
  • voicemail
  • fixed_line_or_mobile
  • fixed_line
  • mobile

For more information about supported types see libphonenumber-js.

Sanitization example

See examples/sanitizors.js

Credits

Support

Having trouble? Open an issue!

License

The MIT License (MIT). Please see License File for more information.