js-type-gen

CLI for generating JS6 type

Stars
1

js-type-gen Build Status Node dependencies status npm version

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:

  1. by scaffolding:
  • require the --classname argument plus the class name
  • take a look at the example bellow:
  • example on how to scaffold a js6 class
  1. from json-schema file:
  • require the --jsonpath argument plus the path of json-schema file
  • see example bellow:
  • example on how generate js6 classes from json schemas

Also see further details by js-type-gen --help