plimble / inputjs

Javascript Input Class with Joi validatior

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inputjs

Javascript Input Class with Joi validatior

Install

npm install inputjs --save

Example

import InputJS from 'inputjs';
import joi from 'joi';

class ExampleInput extends InputJS {
  constructor(data = {}) {
    super(data, {
      id: joi.string().required(),
      name: joi.string().required(),
    });
  }
}

About

Javascript Input Class with Joi validatior

License:Apache License 2.0


Languages

Language:JavaScript 100.0%