2.0.0 • Published 6 years ago

validity-length v2.0.0

Weekly downloads
68
License
ISC
Repository
github
Last release
6 years ago

validity-length

Validity style validator to ensure the length of a property

Installation

npm install validity-length --save
yarn add validity-length

Usage

Below is a simple example for usage with schemata and save:

var length = require('validity-length')
  , schemata = require('schemata')

var schema = schemata(
    { width:
      { type: String
      , validators: { [ length(1,10) ] }
      }
    })
2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago