proteus-validator:JSON对象验证器

时间:2021-05-14 21:25:20
【文件属性】:
文件名称:proteus-validator:JSON对象验证器
文件大小:26KB
文件格式:ZIP
更新时间:2021-05-14 21:25:20
JavaScript 蛋白质验证者 Proteus Validator是JSON Schema Validator,它提供了一个接口,用于根据验证JSON对象。 它既可以在浏览器中运行,也可以在Node.js上运行。 用法 准备 Node.js var validator = require ( 'proteus-validator' ) ; 浏览器 < script type =" text/javascript " src =" http://underscorejs.org/underscore-min.js " > </ script > < script type =" text/javascript " src =" https://github.com/caolan/async/tree/master/lib/async.js " > </ script > < script type ="
【文件预览】:
proteus-validator-master
----.gitignore(28B)
----package.json(445B)
----index.js(171B)
----.jshintignore(22B)
----README.md(9KB)
----lib()
--------validator.js(37KB)
----.npmignore(28B)
----test()
--------test.validate.boolean.js(1024B)
--------test.schema.type.integer.js(5KB)
--------test.html(5KB)
--------test.schema.type.string.js(5KB)
--------test.registSchema.js(1KB)
--------resource()
--------test.schema.type.array.js(3KB)
--------test.validate.number.js(4KB)
--------test.validate.string.js(20KB)
--------test.validate.integer.js(4KB)
--------test.schema.type.object.js(5KB)
--------test.schema.type.number.js(5KB)
--------mocha.opts(57B)
--------test.validate.array.js(3KB)
--------test.schema.js(2KB)
--------test.addValidation.js(1KB)
--------test.validate.js(2KB)
--------test.validate.object.js(9KB)

网友评论