validity-length
v2.0.0
Published
Validity style validator to ensure the length of a property
Downloads
746
Readme
validity-length
Validity style validator to ensure the length of a property
Installation
npm install validity-length --save
yarn add validity-length
Usage
Below is a simple example for usage with schemata and save:
var length = require('validity-length')
, schemata = require('schemata')
var schema = schemata(
{ width:
{ type: String
, validators: { [ length(1,10) ] }
}
})