checkok-max
Max validator for checkok
Last updated 2 years ago by forsigner .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install checkok-max 
SYNC missed versions from official npm registry.

checkok-max

Installation

yarn add checkok checkok-max

Usage

import { check } from 'checkok'
import max from 'checkok-max'

// max length in string
const result = check('foobar').pipe(max(10, 'some, msg'))
console.log(result) // { ok: true }

// max in number
const result = check(5).pipe(max(10, 'some, msg'))
console.log(result) // { ok: true }

License

MIT License

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

5 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (9)

Copyright 2014 - 2016 © taobao.org |