1.0.1 • Published 6 years ago

check-please v1.0.1

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

check-please

package version package downloads standard-readme compliant package license make a pull request

Simple, composable validation

Table of Contents

Install

This project uses node and npm.

$ npm install check-please
$ # OR
$ yarn add check-please

Usage

import {check, exists, pattern, exact, str} from './src'

const isValidFoo = check(
  exact('foo'),
  pattern(/foo/),
  exists('Email is required'),
  str('Email should be string')
)

console.log(isValidFoo('foo').valid) // true

Docs

See docs here.

Contribute

  1. Fork it and create your feature branch: git checkout -b my-new-feature
  2. Commit your changes: git commit -am 'Add some feature'
  3. Push to the branch: git push origin my-new-feature
  4. Submit a pull request

License

MIT

1.0.1

6 years ago

1.0.0

6 years ago