checkok-max
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Keywords

none

Install

npm i checkok-max

DownloadsWeekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

5.21 kB

Total Files

9

Last publish

Collaborators

  • forsigner