文件名称:oversimplified-express-validator:验证程序过于简单,带有简单的选项和更简单的文档
文件大小:9KB
文件格式:ZIP
更新时间:2024-05-06 15:37:58
JavaScript
过度简化的表达验证器 验证程序过于简单,带有简单的选项和更简单的文档#用法您可以在快速应用程序中将其用作中间件。 喜欢 :- app.post('/', middleware([{name:"email", email:true}, {name:"password", minLength: 8}, {name:"phoneNumber", minLength:10, maxLength:10}, {name:"name", equate:"MrBigFox"}, {name:'processor', includes:["AMD", "Ryzen"], minLength:8, maxLength:20}]), async (req, res) => { res.send("posted") console.log(req.body); }) 您必须提供一个数组,其格式为
【文件预览】:
oversimplified-express-validator-main
----middleware.js(2KB)
----options-validator.js(451B)
----documentation.txt(139B)
----README.md(970B)
----.gitignore(31B)
----index.js(795B)
----package-lock.json(17KB)
----package.json(462B)