This package has been deprecated
Author message:
This module has moved and is now available at @hapi/joi-date. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
joi-date-extensions 1.2.0 • Public • Published 6 years ago joi-date-extensions
Joi extensions for extra date rules.
Lead Maintainer: Nicolas Morel
Usage
Usage is a two steps process. First, a schema is constructed using the provided types and constraints:
const BaseJoi = require ( ' joi ' ) ;
const Extension = require ( ' joi-date-extensions ' ) ;
const Joi = BaseJoi . extend ( Extension ) ;
const schema = Joi . date ( ) . format ( ' YYYY-MM-DD ' ) ;
API
See the API Reference .
Package Sidebar Install npm i joi-date-extensions
Downloads Weekly Downloads