veelidate
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

Veelidate

A simple object validator for javascript / typescript.

Setup

// use pnpm
pnpm add veeliadte -S

Usage

import { defineField, defineValidator } from 'veelidate'

const json = {}

const v = defineValidator().setup(() => ({
  str: defineField('').required().isString()
}))

(async () => {
  const valid = await v.validate()

  // ... do something
})()

Api

  • defineField

  • defineValidator

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.13
    1
    • latest

Version History

Package Sidebar

Install

npm i veelidate

Weekly Downloads

1

Version

0.0.13

License

ISC

Unpacked Size

101 kB

Total Files

9

Last publish

Collaborators

  • tamagooooo