jsondl
v0.0.2
Published
A JSON declaration language
Downloads
2
Maintainers
Readme
JSONDL - a JSON declaration language
A domain specific language to document and validate JSON data in your JavaScript projects.
JSONDL is natural and javascripty. It is simple like this.
person.jsondl
:
{
"name": string,
"age": number
}
app.js
:
var jsondl = require('jsondl')
var personDecl = jsondl.compileFile('person.jsondl')
if (personDecl.test({ name: 'Dan', age: '25' })) {
console.log('Wow!')
}
JSONDL is pre-alpha.
To see more of its features, please look at functional tests in test/run-test.js
.