A lightweight wrapper library (v0.5.1) that modernizes gRPC clients in Node.js by converting callback-based interfaces to Promises and replacing constructor + setter patterns with object literals. Works with both @grpc/grpc-js and grpc packages. No breaking changes since v0.1.0, stable and actively maintained. Differentiator: provides a clean, idiomatic TypeScript API for gRPC without requiring a full framework change.
npm install grpc-modernNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a modern gRPC client using makeModernClient and builds request objects with set, then calls an RPC with async/await.
Use import syntax or set type: 'module' in package.json.
Pass a new instance each time to avoid unexpected mutations.
Replace 'grpc' with '@grpc/grpc-js' as peer dependency.
Use 'import type { ModernClient } from 'grpc-modern''.Run 'npm install grpc-modern' (or yarn) and ensure peer dependencies are installed.
Change import to 'import { makeModernClient } from 'grpc-modern''.Ensure makeModernClient receives an object with 'address' (string) and 'credential' (grpc.ChannelCredentials).