js-type-gen
CLI for generating JS6 classes. A wrapper around generator-js-type, which is a Yeoman Generator;
Install
npm install -g js-type-gen
Get started
There are two ways to generate JS6 classes:
- by scaffolding:
- require the
--classname
argument plus the class name - take a look at the example bellow:
- from json-schema file:
- require the
--jsonpath
argument plus the path of json-schema file - see example bellow:
Also see further details by js-type-gen --help