[x3d-public] New github repository, X3DValidate.
yottzumm at gmail.com
yottzumm at gmail.com
Thu Apr 6 00:41:41 PDT 2017
Note change below. See README.md for current usage.
I have created a new git hub repository for validating X3D JSON files at:
https://github.com/coderextreme/x3dvalidate
I’d like to develop this repository into a full fledged NPM project that validates X3D JSON files with Ajv.
To install and run (bash):
==================================
$ git clone https://github.com/coderextreme/x3dvalidate
$ cd x3dvalidate
$ npm install
$ node x3dvalidate.js …/file.json
==================================
You can also include x3dvalidate in your project with the following dependencies:
package.json:
====================================
{
"name": "usevalidate",
"version": "1.0.0",
"private": true,
"dependencies": {
"x3dvalidate": "git://github.com/coderextreme/x3dvalidate.git"
}
}
===================================
Then usage becomes (JavaScript):
====================================
var validate = require('x3dvalidate')
var files = […]
validate(files);
=====================================
Comments, test files, issues welcome!
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170406/027d779b/attachment.html>
More information about the x3d-public
mailing list