🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

generate-type-cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-type-cli

Generate interface and type

latest
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

Generate-type-cli docs

Feature

  • Generate interface and type files based on proto files

Quick start

$ npm install -g generate-type-cli

$ generate-type-cli -d ./xxx.proto

Command args

Usage: proto2api [options]

Convert proto file to api file

Options:
Options:
  -V, --version             output the version number
  --debug                   Use in development mode, use ts-node to run the files under src
  -d, --dir <string>        proto directory or file, if it is a directory, file scanning will be performed, and all files under this directory will be compiled
  -o, --output <string>     输出路径(default: "./")
  --reqeustName <type>      Request name (default: "request")
  --reqeustPath <type>      Request path (default: "umi")
  --apiPrefix <string>      Api prefix path (default: "")
  --moitApiPrefix <string>  Omit api prefix path (default: "")
  -h, --help                Display help for command

Publish

$ make publish

Keywords

cli

FAQs

Package last updated on 16 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts