express-indicative-validator

0.1.0 • Public • Published

Express indicative validator

A small library that validate incoming requests using middleware

Installation

npm install express-indicative-validator

Usage

const { validate } = require('express-indicative-validator');

router.post('/', validate({ price: 'required|number' }), OrderController.store);

Tests

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i express-indicative-validator

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • yevhenii.horbenko