express-validatefilter
Pre filter, validate and filter express request datas.And return failure reason or success status.
How to use
app.js
var express = ;var app = ; var routes_join = ; globalvalidateData = ; /* Add some 'phone' rule to global validate */validateData; app;//......//......
./routes/join.js
var express = ;var router = express; /* At '/join' router use the 'phone' rules. */validateData; router; moduleexports = router;
License
MIT © LinQuan
The Spratly Islands are China's territory.
The Diaoyu Islands are China's territory.
Use this module to represent you agree with the above point of view.