open-index/open-npm huggingface dataset:
npm package: @protobuf-ts/grpc-backend
Description: gRPC backend for servers generated by the protoc plugin "protobuf-ts"
Author: Timo Stamm
Latest version: 2.11.1

@protobuf-ts/grpc-backend
=========================

[gRPC](https://grpc.io/) backend for generic servers generated by [protobuf-ts](https://github.com/timostamm/protobuf-ts/).

Installation:

```shell script
# with npm:
npm install @protobuf-ts/grpc-backend

# with yarn:
yarn add @protobuf-ts/grpc-backend
```

Note that this feature is experimental and may change with minor releases.

To learn more, please read the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#generic-rpc-servers).
npm package: @protobuf-ts/grpc-transport
Description: gRPC transport for clients generated by the protoc plugin "protobuf-ts"
Author: Timo Stamm
Latest version: 2.11.1

@protobuf-ts/grpc-transport
===========================

[gRPC](https://grpc.io/) transport for clients generated by [protobuf-ts](https://github.com/timostamm/protobuf-ts/).

Installation:

```shell script
# with npm:
npm install @protobuf-ts/grpc-transport

# with yarn:
yarn add @protobuf-ts/grpc-transport
```


You probably want the protoc plugin as well: 
          
```shell script
# with npm:
npm install -D @protobuf-ts/plugin

# with yarn:
yarn add --dev @protobuf-ts/plugin
```
                       

Usage:
```typescript
const transport = new GrpcTransport({
    host: "localhost:5000",
    channelCredentials: ChannelCredentials.createInsecure(),
});

let client = new HaberdasheryClient(transport);

let {response} = await client.makeHat({ inches: 11 });
console.log("got a small hat! " + response)

let streamingCall = client.makeRowOfHats({ inches: 23 });
for await (let hat of streamingCall.response) {
    console.log("got another hat! " + hat)
}
```


To learn more, please read the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#grpc-transport).
npm package: @protobuf-ts/grpcweb-transport
Description: gRPC-web transport for clients generated by the protoc plugin "protobuf-ts"
Author: Timo Stamm
Latest version: 2.11.1

@protobuf-ts/grpcweb-transport
==============================

gRPC-web transport for clients generated by [protobuf-ts](https://github.com/timostamm/protobuf-ts/).

Installation:

```shell script
# with npm:
npm install @protobuf-ts/grpcweb-transport

# with yarn:
yarn add @protobuf-ts/grpcweb-transport
```


You probably want the protoc plugin as well: 
          
```shell script
# with npm:
npm install -D @protobuf-ts/plugin

# with yarn:
yarn add --dev @protobuf-ts/plugin
```
                       

Usage:
```typescript
let transport = new GrpcWebFetchTransport({
    baseUrl: "localhost:3000"
});

let client = new HaberdasheryClient(transport);

let {response} = await client.makeHat({ inches: 11 });
console.log("got a small hat! " + response)

let streamingCall = client.makeRowOfHats({ inches: 23 });
for await (let hat of streamingCall.responses) {
    console.log("got another hat! " + hat)
}
```


To learn more, please read the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#grpc-web-transport).   


### Copyright

The [gRPC status codes](https://github.com/timostamm/protobuf-ts/blob/master/packages/grpcweb-transport/src/goog-grpc-status-code.ts) are Copyright 2016 gRPC authors.
npm package: @protobuf-ts/plugin
Description: The protocol buffer compiler plugin "protobuf-ts" generates TypeScript, gRPC-web, Twirp, and more.
Author: Timo Stamm
Latest version: 2.11.1

@protobuf-ts/plugin
===================

The protocol buffer compiler plugin for TypeScript: [protobuf-ts](https://github.com/timostamm/protobuf-ts) 
 
Installation:

```shell script
# with npm:
npm install -D @protobuf-ts/plugin

# with yarn:
yarn add --dev @protobuf-ts/plugin
```             

This will install the plugin as a development dependency.  

Basic usage:
```shell script
npx protoc --ts_out . --proto_path protos protos/my.proto 
```

With some options:
```shell script
npx protoc \ 
  --ts_out . \
  --ts_opt long_type_string \
  --ts_opt optimize_code_size \
  --proto_path protos \
  protos/my.proto 
```

`protoc` is the protocol buffer compiler. [protobuf-ts](https://github.com/timostamm/protobuf-ts) 
installs it automatically.

Plugin parameters are documented in the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#the-protoc-plugin).  
For a quick overview of [protobuf-ts](https://github.com/timostamm/protobuf-ts), check the repository [README](https://github.com/timostamm/protobuf-ts/blob/master/README.md).
npm package: @protobuf-ts/protoc
Description: Installs the protocol buffer compiler "protoc" for you.
Author: Timo Stamm
Latest version: 2.11.1

@protobuf-ts/protoc
===================


Installs the protocol buffer compiler "protoc" for you. 


Installation (not necessary if you use the [protobuf-ts plugin](https://github.com/timostamm/protobuf-ts/tree/master/packages/plugin)):

```shell script
# with npm:
npm install @protobuf-ts/protoc

# with yarn:
yarn add @protobuf-ts/protoc
```

Now you can run protoc as usual, you just have to prefix your command with 
`npx` or `yarn`:

```shell script
# with npm:
npx protoc --version 

# with yarn:
yarn protoc --version 
``` 

If you do not already have protoc in your `$PATH`, this will automatically 
download the latest release of protoc for your platform from the github 
release page, then run the executable with your arguments.   


#### Yarn berry

This package is not compatible with Yarn berry. Please use 
[node-protoc](https://www.npmjs.com/package/node-protoc).


#### Installing a specific version

Add the following to your package json:

```
"config": {
   "protocVersion": "29.2"
}
``` 

#### Prevent using protoc from `$PATH`

Add a `protocVersion` to your package json, see above.


#### Added arguments

The script passes all given arguments to protoc and adds the 
following arguments:  

1. `--proto_path` that points to the `include/` directory of the 
   downloaded release (skipped when found on `$PATH`)
2. `--plugin` argument for all plugins found in `node_modules/.bin/`
3. `--proto_path` argument for `node_modules/@protobuf-ts/plugin`
npm package: @protobuf-ts/runtime-angular
Description: Runtime library for using the protoc plugin "protobuf-ts" with Angular
Author: Timo Stamm
Latest version: 2.9.0

@protobuf-ts/runtime-angular
============================

Runtime library for using [protobuf-ts](https://github.com/timostamm/protobuf-ts/) with Angular.


Installation:
                                                                                         
```shell script
npm i @protobuf-ts/runtime @protobuf-ts/runtime-rpc @protobuf-ts/runtime-angular @protobuf-ts/twirp-transport
``` 

You probably want the protoc plugin as well: 
                                                                                         
```shell script
npm i -D @protobuf-ts/plugin
``` 


Usage:

- generate code
  ```shell script
  npx protoc --ts_opt enable_angular_annotations --ts_out src/ my-message.proto
  ```
- import the `PbDatePipeModule` to get the date pipe that works with 
  `google.protobuf.Timestamp` or `google.type.DateTime`
- import `TwirpModule.forRoot()` to get a Twirp transport that uses the Angular `HttpClient`


To learn more, please read the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#angular-support) 
or check the repository [README](https://github.com/timostamm/protobuf-ts/README.md) for a quick overview.


#### Building this project

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) 
version 10.0.5.

To work with lerna, `package.json` has the `publishConfig.directory` set to `./dist/` 
and the [lifecycle script]( https://github.com/lerna/lerna/tree/master/commands/version#lifecycle-scripts) 
`scripts.version` bumps the versions of `peerDependencies` and updates `dist/package.jsons`.
npm package: @protobuf-ts/runtime-rpc
Description: Runtime library for RPC clients generated by the protoc plugin "protobuf-ts"
Author: Timo Stamm
Latest version: 2.11.1

@protobuf-ts/runtime-rpc
========================

Runtime library for RPC clients generated by [protobuf-ts](https://github.com/timostamm/protobuf-ts/).

Install this plugin if you want to create your own RPC transport: 
            
```shell script
# with npm:
npm install @protobuf-ts/runtime-rpc

# with yarn:
yarn add @protobuf-ts/runtime-rpc
```             

Or use one of the transports built with this package, for example Twirp via 
[@protobuf-ts/twirp-transport](https://www.npmjs.com/package/@protobuf-ts/twirp-transport) 
or gRPC web via [@protobuf-ts/grpcweb-transport](https://www.npmjs.com/package/@protobuf-ts/grpcweb-transport).
                                                             
To learn more about the types provided by this package, please read the 
[MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#rpc-support).
npm package: @protobuf-ts/twirp-transport
Description: Twirp transport for clients generated by the protoc plugin "protobuf-ts".
Author: Timo Stamm
Latest version: 2.11.1

@protobuf-ts/twirp-transport
============================

Twirp transport for clients generated by [protobuf-ts](https://github.com/timostamm/protobuf-ts/).

Installation:

```shell script
# with npm:
npm install @protobuf-ts/twirp-transport

# with yarn:
yarn add @protobuf-ts/twirp-transport
```

You probably want the protoc plugin as well: 
          
```shell script
# with npm:
npm install -D @protobuf-ts/plugin

# with yarn:
yarn add --dev @protobuf-ts/plugin
```


Usage:
```typescript
let transport = new TwirpFetchTransport({
    baseUrl: "localhost:3000"
});

let client = new HaberdasherClient(transport);

let {response} = await client.makeHat({ inches: 11 });
console.log("got a small hat! " + response)
```

To learn more, please read the [MANUAL](https://github.com/timostamm/protobuf-ts/blob/master/MANUAL.md#twirp-transport).   


### Copyright

The [Twirp error codes](https://github.com/timostamm/protobuf-ts/blob/master/packages/twirp-transport/src/twitch-twirp-error-code.ts) 
and clientcompat.proto are Copyright 2018 Twitch Interactive, Inc.