1.0.0 • Published 9 years ago

validity-float v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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 ] }
      }
    })