A gRPC implementation of the Boom library for creating gRPC-friendly error objects in Node.js. Version 3.0.12 is current. It maps HTTP error concepts to gRPC status codes, supporting metadata, boomiify, and convenience methods for all 16 gRPC status codes. Zero external dependencies (only peer dependency @grpc/grpc-js v1.8.14). Ships TypeScript types. Differentiators: mimics hapi/boom API, easy integration with gRPC callback patterns, and supports custom error details.
npm install grpc-boomNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC-friendly error with metadata using the invalidArgument convenience method.
Use import or const GrpcBoom = require('grpc-boom').default;Update calls to pass message as first argument or rely on default.
Wrap strings in new Error('message') before passing to boomify.Always pass an instance of Metadata from @grpc/grpc-js or undefined.
Use new GrpcBoom(message, options) or convenience methods.
Use const GrpcBoom = require('grpc-boom').default;Use grpc.status constants or numbers between 0 and 16 inclusive.
Run npm install @grpc/grpc-js
Use GrpcBoom.boomify from 'grpc-boom'