data-synth
Dynamic data model synthesizer that can represent hierarchical data structures with dynamic getter/setter interfaces, data normalizers, validators, serializers with flexible class extensions using Meta data class objects for node.
Installation
$ npm install data-synth
Basic Usage
DS = require 'data-synth' @name: @attr 'string' @songs: @hasMany Song music = musicset 'songs' name: 'November Rain' musicserialize
Advanced Usage
For advanced usage examples, be sure to check out
yangforge where data-synth
is utilized for metacompilation of YANG schemas to auto-generate
runtime data model instances, which in turn enables auto-generation of
various interfaces (such as CLI, HTTP/REST/JSON, etc.)