@clocklimited/validity-integer

1.2.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @clocklimited/validity-integer

Weekly Downloads

29

Version

1.2.1

License

ISC

Unpacked Size

4.66 kB

Total Files

7

Last publish

Collaborators

  • mrstebo
  • scott-clock
  • clock-release-bot
  • steepnicki
  • asheboy