Joi Phone Number Versions Save

Phone number validation rule for Joi

v5.0.1

3 years ago

v4.0.0

4 years ago

Joi 16 and 17 support ✨

Only supports node 12+.

The api did not change.

v3.1.0

4 years ago

Added a strict option

myCustomJoi.string().phoneNumber({ defaultCountry: 'US', strict: true }).validate('7777777777'); // validation error

See https://github.com/Salesflare/joi-phone-number/pull/59 for all the details.