jsondl

0.0.2 • Public • Published

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.

Dependencies (1)

Dev Dependencies (8)

Package Sidebar

Install

npm i jsondl

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • kkeri