@wfh/json-schema-gen
TypeScript icon, indicating that this package has built-in type declarations

1.1.0-0 • Public • Published

JSON schema generator commond line tool

This tool generates JSON schema file, we use json schema based object stringify solution over JSON.stringify function. In this way it offers better performance in Node.js (e.g. fast-json-stringify).

Usage: json-schema-gen [options] [...packages]

Scan packages and generate json schema.
You package.json file must contains:
  "dr": {jsonSchema: "<interface files whose path is relative to package directory>"}

Options:
  -V, --version                                   output the version number
  -c, --config <config-file>                      Read config files, if there are multiple files, the latter one overrides previous one (default: [])
  --prop <property-path=value as JSON | literal>  <property-path>=<value as JSON | literal> ... directly set configuration properties, property name is lodash.set() path-like string
   e.g.
   (default: [])
  -h, --help                                      display help for command

Readme

Keywords

none

Package Sidebar

Install

npm i @wfh/json-schema-gen

Weekly Downloads

7

Version

1.1.0-0

License

MIT

Unpacked Size

25.7 kB

Total Files

8

Last publish

Collaborators

  • liujingbreak