@justingorham/tsjsvg
Typescript json schema and validator generator
Last updated 5 months ago by justin_gorham .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @justingorham/tsjsvg 
SYNC missed versions from official npm registry.

@justingorham/tsjsvg

Typescript json schema and validator generator

oclif Version Downloads/week License

Usage

$ npm install -g @justingorham/tsjsvg
$ tsjsvg COMMAND
running command...
$ tsjsvg (-v|--version|version)
@justingorham/tsjsvg/2.1.0 win32-x64 node-v12.16.1
$ tsjsvg --help [COMMAND]
USAGE
  $ tsjsvg COMMAND
...

Commands

tsjsvg generate

generate schema and validator

USAGE
  $ tsjsvg generate

OPTIONS
  -f, --fileName=fileName                            Name of the generated file
  -h, --help                                         show CLI help
  -p, --path=path                                    The path to the TypeScript source file.
  --defaultsVarName=defaultsVarName                  [default: defaults] export to set default validator
  --definitionKeysTypeName=definitionKeysTypeName    [default: DefinitionKeys] exported definition keys type name
  --modelValidatorClassName=modelValidatorClassName  [default: ModelValidator] name of the exported validator class
  --schemaVarName=schemaVarName                      [default: schema] exported name of the generated JSON schema

EXAMPLE
  $ tsjsvg generate -p src/models/**/*.ts -f src/model-validator.ts

See code: src\commands\generate.ts

tsjsvg help [COMMAND]

display help for tsjsvg

USAGE
  $ tsjsvg help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

Current Tags

  • 2.1.0                                ...           latest (4 months ago)

9 Versions

  • 2.1.0                                ...           4 months ago
  • 2.0.1                                ...           5 months ago
  • 2.0.0                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (12)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |