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

Readme

Keywords

none

Package Sidebar

Install

npm i checkok-max

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

5.21 kB

Total Files

9

Last publish

Collaborators

  • forsigner