@xanthous/protoc-ts
v0.1.0 protobuf protoc typescript ts grpc service proto3
protoc-ts
Protoc compiler for TypeScript service interfaces
Installation
$ npm install --save @xanthous/protoc-ts
Usage
- Make sure the protoc compiler is installed. Compiler Releases
- Invoke
protoc
with: --plugin
- define where the plugin needed forts_out
can be found--ts_out
- the params and directory to output togenerated
- output directory name-I
- Protos root directory
protoc \
--plugin=protoc-ts=./node_modules/.bin/protoc-ts \
--ts_out=service=true:generated \
-I ./proto \
proto/*.proto
npm i @xanthous/protoc-ts
Source Code
github.com/mean-expert-offic...Metadata
- MIT
- Whatever
- Simon Liang
- released 10/27/2018