validity-integer
v1.2.0
Published
Validity style validator to ensure a property is an integer
Downloads
102
Readme
validity-integer
Validity style validator to ensure a property is an integer
Installation
npm install validity-integer --save
Usage
Below is a simple example for usage with schemata and save:
var isInteger = require('validity-integer')
, schemata = require('schemata')
var schema = schemata(
{ width:
{ type: Number
, validators: { [ isInteger ] }
}
})