0.0.2 • Published 7 years ago

jsondl v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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.