A utility library for creating gRPC error objects with standard gRPC status codes. Version 1.1.6 is the latest release, with no recent updates since 2019. It provides a simple factory for all 16 gRPC error types (e.g., AlreadyExistsError, NotFoundError) as error subclasses. Unlike manually constructing gRPC errors, this package ensures correct status codes and messages. It ships TypeScript types and supports ESM via import. Suitable for Node.js gRPC servers.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Named ESM import works; CommonJS require with destructuring is also fine but less typical.
Default import as namespace works; CommonJS require works but is deprecated in ESM projects.
Available as named export. No common mistake beyond using correct name.
Demonstrates importing and throwing various gRPC errors, accessing code, message, and name properties.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.