A lightweight utility to convert gRPC client callbacks into Promises for Node.js. Current stable version is 0.1.0, released as an early alpha with no recent updates. It wraps grpc-js (or grpc) client methods to return promises instead of using callbacks. Differentiates from @grpc/proto-loader and grpc-js-native by offering a simple promisify-only function, but lacks TypeScript support, streaming handling, and active maintenance.
npm install grpc-promisifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to promisify a gRPC client and call a unary RPC with promises.
Use @grpc/grpc-js with built-in promise support or a maintained promisify library.
Promisify a fresh client instance each time or keep a separate copy.
Use @grpc/grpc-js built-in promise support for streaming or manage streams manually.
Wrap the call in try-catch or use .catch on the promised call.
Use @grpc/grpc-js and @grpc/proto-loader without promisify, or manually wrap methods.
const promisify = require('grpc-promisify');Ensure call to promisify(client) before invoking any RPCs, and only use for unary calls.
npm install @grpc/grpc-js or npm install grpc