Phone number validation rule for Joi
Joi 16 and 17 support ✨
Only supports node 12+.
The api did not change.
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.