1.0.0 • Published 8 years ago

apeman-middleware-validate v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

apeman-middleware-validate

Build Status npm Version JS Standard

Middlware for schema validation

Installation

$ npm install apeman-middleware-validate --save

Usage

create an middleware instance and attach to server settings like $api of apeman projects.

Apemanfile.js

/** This is an example Apemanfile to use apeman-middleware-validate */

'use strict'

module.exports = {
  $pkg: { /* ... */ },
  $api: {
    /* ... */
    $middlewares: [
      require('apeman-middleware-validate')({})
    ]
  }
}

Signature

apemanMiddlewareValidate(options) -> function

Create an middleware function

Args
NameTypeDefaultDescription
optionsObject{}Optional settings

License

This software is released under the MIT License.

Links

1.0.0

8 years ago