validity-float
v1.0.0
Published
Validity style validator to ensure a property is a float
Downloads
16
Readme
validity-float
Validity style validator to ensure a property is a float
Installation
npm install validity-float --save
Usage
Below is a simple example for usage with schemata and save:
var validateFloat = require('validity-float')
, schemata = require('schemata')
var schema = schemata(
{ value:
{ type: Number
, validators: { all: [ validateFloat ] }
}
})