A utility library for @grpc/grpc-js providing helper types and functions such as ServiceError, ServiceStatus, and serviceCall for easier gRPC error handling and status codes. Version 0.3.0 is current, with stable release cadence. Key differentiators: lightweight, type-safe wrappers for gRPC client calls, and consistent error handling patterns.
npm install grpc-js-helperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use serviceCall with a gRPC client, handle ServiceError, and check ServiceStatus codes.
Pass the return value of a gRPC client method (e.g., client.sayHello({...})), not await it.Update Node.js to >=20 or use an older version of the package.
Monitor GitHub for updates or consider alternatives.
Use `import { serviceCall } from 'grpc-js-helper'` instead of `import serviceCall from 'grpc-js-helper'`.Use import syntax or switch to dynamic import(). Ensure Node >=20.
Run `npm install @grpc/grpc-js`.