Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 640 Bytes

File metadata and controls

43 lines (33 loc) · 640 Bytes

json-rpc-codegen

Install node modules

npm install

Build

npm run build

Lint

npm run lint

Test

npm test

Run

node dist/cli.js

Command line options

Usage: codegen [options] <schema>

json-rpc interface code generator

Arguments:
  schema                 openapi.yml schema

Options:
  -V, --version          output the version number
  -c, --client <string>  Generate TypeScript client interface (default: "./rpc-interface.ts")
  -s, --server <string>  Generate C++ server interface (default: "./RpcInterface.h")
  -h, --help             display help for command