diff --git a/README.md b/README.md index b711056..127f016 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,25 @@ Compile `.proto` files to plain TypeScript. Supports gRPC Node and gRPC Web. ## Usage -```properties +```sh npm install -g protoc-gen-ts +``` + +### Protoc +```properties protoc -I=sourcedir --ts_out=dist myproto.proto ``` + +### Buf +```yaml +version: v1 +plugins: + - name: ts + path: ./node_modules/.bin/protoc-gen-ts + out: ./dist +``` + ### Example ```proto @@ -78,4 +92,4 @@ If your corporate has a OSS funding scheme, please consider supporting us monthl - \ No newline at end of file +