joi-creditcard-extension
Joi extension for credit card validation
Lead Maintainer: Phillipe Lopes
Usage
Usage is a two steps process. First, a schema is constructed using the provided types and constraints:
const BaseJoi = ;const Extension = ;const Joi = BaseJoi; const schema = Joi;Joi // Output 5217850328515461
API
Take a look at the tests