1.0.1 • Published 5 years ago

checkok-string v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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' }

License

MIT License

1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago