node.js - Middleware to validade all form entries express js, node js -


Is there some middleware function for validating all the entries for JS and expressing JS?

I want to check special features and I do not want to validate every form field every time.

Thank you!

It may be a good fit, it is built on a popular recognition library.

Express-Accredited is also there.

1 set up and init

  expressValidator = is required ('express-recognizer'); App.use (expressValidator ([options]));  

Configure verification '). NotEmpty (). IsInt (); Req.checkParams ('urlparam', 'invalid urlparam'). IsAlpha (); Req.checkQuery ('getparam', 'get meet invalid'). IsInt ();


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -