js-type-gen

0.0.8 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i js-type-gen

Weekly Downloads

9

Version

0.0.8

License

ISC

Last publish

Collaborators

  • igorribeirolima