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