Common stuff for nice-grpc and nice-grpc-web
npm install nice-grpc-commonCommon data structures and types fornice-grpc and nice-grpc-web.
If you are making a middleware library, consider depending onnice-grpc-common, as it is considered more stable in terms of semver. Also,
this allows you to build an isomorphic client middleware (working on both
Node.js and the Browser).
For application code, use nice-grpc or nice-grpc-web directly. Both
re-export names from nice-grpc-common.
```
npm install nice-grpc-common
- Metadata — represents
gRPC Metadata.
- Status — enum with
gRPC status codes.
- CallContext — call context passed to server
methods.
- ServerError.
- ServerMiddleware.
- composeServerMiddleware.
- CallOptions — call options accepted by client
methods.
- ClientError.
- ClientMiddleware.
- composeClientMiddleware`.
[npm-image]: https://badge.fury.io/js/nice-grpc-common.svg
[npm-url]: https://badge.fury.io/js/nice-grpc-common