yarn add checkok checkok-email
import { check } from 'checkok'
import email from 'checkok-email'
const result = check('foo').pipe(email('should be a email'))
console.log(result) // { ok: false, message: 'should be a email' }
yarn add checkok checkok-email
import { check } from 'checkok'
import email from 'checkok-email'
const result = check('foo').pipe(email('should be a email'))
console.log(result) // { ok: false, message: 'should be a email' }
npm i checkok-url
2
1.0.1
MIT
3.85 kB
8