revalidatorNodejs 验证器
revalidator 是一款跨浏览器的 Node.js 验证器,是 resourceful 和 flatiron 正在使用的验证器。
示例
revalidator
的核心是很简单和简洁的: revalidator.validate(obj, schema)
:
var revalidator = require('revalidator'); console.dir(revalidator.validate(someObject, { properties: { url: { description: 'the url the object should be stored at', type: 'string', pattern: '^/[^#%&*{}\\:<>?\/+]+$', required: true }, challenge: { description: 'a means of protecting data (insufficient for production, used as example)', type: 'string', minLength: 5 }, body: { description: 'what to store at the url', type: 'any', default: null } } }));
评论
common-validator.jsWeb前端通用验证器
common-validator.js 是一个Web前端通用验证器。此次发布的2.0版本在1.0的基
common-validator.jsWeb前端通用验证器
0
common-validator.jsWeb前端通用验证器
common-validator.js是一个Web前端通用验证器。此次发布的2.0版本在1.0的基础架构上做了全新的调整,希望能通过这个JS验证器小组件为我们码农们提供微小的帮助。该版本的主要新特性包
common-validator.jsWeb前端通用验证器
0
Buddleja DebuggerHTML Strict Mode验证器
BuddlejaDebugger是一个本地的HTMLStrict Mode验证器,利用了浏览器的UserCSS特性,Buddleja本质只是一个CSS文件,却可以*帮你验证你的图片是否有alt属性*页
Buddleja DebuggerHTML Strict Mode验证器
0