egg-validator2

1.0.10 • Public • Published

egg-validator2

NPM version build status Test coverage David deps Known Vulnerabilities npm download

A validate plugin for egg based on validator. Best suited for request parameter validation.

Install

$ npm i egg-validator2 --save

Usage

// {app_root}/config/plugin.js
exports.validator2 = {
  enable: true,
  package: 'egg-validator2',
};

Configuration

// {app_root}/config/config.default.js
exports.validator2 = {
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-validator2

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

6.11 kB

Total Files

5

Last publish

Collaborators

  • alex-zhang