agreed-typed
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

agreed-typed

Greenkeeper badge

  • agreed api type definitions (types.ts)
  • agreed.ts to swagger generator

install

$ npm install -g agreed-typed

usage

$ agreed-typed --help
Usage: agreed-typed [subcommand] [options]
Subcommands:
  gen-swagger                        Generate swagger file.
Options:
  --help                             Shows the usage and exits.
  --version                          Shows version number and exits.
Examples:
  agreed-typed gen-swagger --path ./agreed.ts

gen-swagger

$ agreed-typed gen-swagger --help
Usage: agreed-typed gen-swagger [options]
  Options:
    --path                             Agreed file path (required)
    --title                            swagger title
    --description                      swagger description
    --version                          document version
    --depth                            aggregate depth (default = 2)
    --dry-run                          dry-run mode (outputs on stdout)
    --output                           output filename (default schema.json)
    --host                             swagger host (default localhost:3030)
    --format                           file format [json|yaml] (default json)
    --help                             show help
  Examples:
    agreed-typed gen-swagger --path ./agreed.ts --output schema # output file = schema.json 
    agreed-typed gen-swagger --path ./agreed.ts --output schema --format yaml #  output file = schema.yaml 

License

This project is licensed under the Apache License 2.0 License - see the LICENSE file for details

Readme

Keywords

none

Package Sidebar

Install

npm i agreed-typed

Weekly Downloads

24

Version

1.0.1

License

apache-2.0

Unpacked Size

132 kB

Total Files

49

Last publish

Collaborators

  • akito_ito