@theonlyducks/validation.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.5-beta • Public • Published

Validation.js

JavaScript validation engine

Documentation

See

Getting started

Installation

yarn add @theonlyducks/valitaion.js

Usage

import Validate from "valitaion.js";

const name = 'John Doe'
const props = new Validate();
props.ofValue(name).isString().isEmail();

try {
    props.assertOne();
    console.log('valid');
} catch (error) {
    console.error('errors', errors.data);
}

Readme

Keywords

Package Sidebar

Install

npm i @theonlyducks/validation.js

Weekly Downloads

2

Version

1.0.5-beta

License

MIT

Unpacked Size

40.7 kB

Total Files

7

Last publish

Collaborators

  • theonlyducks