checkok
Installation
yarn add checkok checkok-string checkok-required checkok-email
Usage
import { check } from 'checkok'
import string from 'checkok-string'
import required from ' check-required'
import email from ' check-email'
const result = check('test@test.com').pipe(
string(),
required('can not empty'),
email('Email is invalid'),
)
console.log(result) // { ok: true }