a lib
yarn add checkok
import { check } from 'checkok'
import { string, required, email } from 'checkok/rules'
const result = check('foo').pipe(
string(),
required(),
email(),
)
console.log(result) // { ok: true }
a lib
yarn add checkok
import { check } from 'checkok'
import { string, required, email } from 'checkok/rules'
const result = check('foo').pipe(
string(),
required(),
email(),
)
console.log(result) // { ok: true }
npm i util-result
4
1.0.0
MIT
4.38 kB
9