A drop-in replacement for grpc-health-check, implementing the gRPC Health Checking Protocol (defined in grpc/grpc-proto) using @grpc/grpc-js. Version 1.2.2 (latest) supports both Check and Watch methods, and is compatible with @grpc/grpc-js 1.9.x and @grpc/proto-loader 0.7.x. Lightweight and easy to integrate — just provide a status map and add the service to your gRPC server. This package is actively maintained and follows the same API as the original grpc-health-check package.
npm install grpc-js-health-checkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC health check server with a status map, adds the health service, and starts listening on port 50051.
Replace imports from 'grpc' with '@grpc/grpc-js' and update server creation accordingly.
Replace 'grpc-health-check' with 'grpc-js-health-check' in your package.json and imports.
Use: server.addService(service, healthImpl);
Ensure statusMap[''] is defined, e.g., '': servingStatus.SERVING
Use named import: const { Implementation } = require('grpc-js-health-check');Run: npm install @grpc/grpc-js
Import { servingStatus } correctly, then use servingStatus.SERVING