1.0.1 • Published 5 years ago
checkok-string v1.0.1
checkok-string
Installation
yarn add checkok checkok-string
Usage
import { check } from 'checkok'
import string from 'checkok-string'
// ok
const result = check('foo').pipe(string('should be a string'))
console.log(result) // { ok: true }
// not ok
const result = check(123).pipe(string('should be a string'))
console.log(result) // { ok: false, message: 'should be a string' }