validity-integer

1.2.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    22
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    22
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i validity-integer

Weekly Downloads

22

Version

1.2.0

License

ISC

Last publish

Collaborators

  • dompainter
  • serby