https://github.com/igorlima/js-type-gen
CLI for generating JS6 type
https://github.com/igorlima/js-type-gen
Last synced: 6 months ago
JSON representation
CLI for generating JS6 type
- Host: GitHub
- URL: https://github.com/igorlima/js-type-gen
- Owner: igorlima
- Created: 2015-09-29T04:04:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-09T04:08:40.000Z (about 10 years ago)
- Last Synced: 2025-04-06T04:28:56.472Z (8 months ago)
- Language: JavaScript
- Size: 280 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
js-type-gen [](https://travis-ci.org/igorlima/js-type-gen) [](https://david-dm.org/igorlima/js-type-gen) [](http://badge.fury.io/js/js-type-gen)
==========================
CLI for generating JS6 classes. A wrapper around [generator-js-type](https://github.com/igorlima/generator-js-type), which is a [Yeoman Generator](http://yeoman.io/authoring/index.html);
## Install
```sh
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:
- 
2. 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``