Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

checkok-string

forsigner12MIT1.0.1TypeScript support: included

String validator for checkok

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

0.0.5 (2019-01-08)

Note: Version bump only for package checkok-string

0.0.4 (2019-01-07)

Note: Version bump only for package checkok-string

0.0.3 (2019-01-04)

Note: Version bump only for package checkok-string