Enhanced parameter.
Wrapped node-modules / parameter with additional rules, read node-modules / parameter for more.
$ npm install enhanced-parameter
const parameter = require('enhanced-parameter')()
const rule = {
datetime: 'iso8601DateTime'
}
const data = {
datetime: '2017-02-22T22:00:00Z'
}
const errors = parameter.validate(rule, data)
Check valid datetime in ISO8601 format between 1000 and 9999.
Made with ❤ by m31271n