microframework-t-validator
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

T-Validator module for Microframework

Adds integration between t-validator and microframework.

Usage

  1. Install module:

    npm install --save microframework-t-validator

  2. Simply register module in the microframework when you are bootstrapping it.

        import {MicroFrameworkBootstrapper} from "microframework/MicroFrameworkBootstrapper";
        import {TValidatorModule} from "microframework-t-validator/TValidatorModule";
        
        new MicroFrameworkBootstrapper({ baseDirectory: __dirname })
            .registerModules([
                new TValidatorModule()
            ])
            .bootstrap()
            .then(result => console.log('Module is running. Validation is available now.'))
            .catch(error => console.error('Error: ', error));
            
  3. Now you can use t-validator module in your microframework.

Todos

  • cover with tests
  • add more docs

Readme

Keywords

none

Package Sidebar

Install

npm i microframework-t-validator

Weekly Downloads

0

Version

0.0.1

License

Apache-2.0

Last publish

Collaborators

  • pleerock