Skip to content

clocklimited/validity-integer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Validity style validator to ensure a property is an integer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%