@zensen/form-validators

1.0.8 • Public • Published

@zensen/form-validators

Validators for form-service

Features

  • Adds some other general-purpose, and condition-based validators
  • Uses the popular validators package
  • Provides a wrapper interface around these functions for compatibility with form-service

Install

Using npm:

$ npm install @zensen/form-validators

Using yarn:

$ yarn add @zensen/form-validators

Validators

This is a WIP package.

isRequired

isRequiredIf

isPropRequired

isSsn

isDate

isDateBefore

isDateAfter

isEmailAddress

isPhoneNumber

isPostalCode

hasLength

hasDuplicate

atMin

atMax

inRange

matchesPattern

/@zensen/form-validators/

    Package Sidebar

    Install

    npm i @zensen/form-validators

    Weekly Downloads

    206

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    11.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • travistrue
    • seanferguson