A small Node.js library for gRPC-based request validation in payment/order systems. Current stable version is 1.0.2. The package provides two main functions: getIssue for registering accounts (returning key/secret) and getValidateOrder for validating order objects against a remote gRPC service. Note that the package does not use Protocol Buffer validation but rather a proprietary gRPC API. It is not actively maintained, has no TypeScript definitions, and no tests visible. Alternatives with better validation support include @grpc/proto-loader and protobuf-validate.
npm install grpc-validationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers an account via getIssue and validates an order object using getValidateOrder with key and secret from environment variables.
Use JavaScript files and JSDoc comments, or create a custom .d.ts file.
Start the corresponding gRPC server or modify the hardcoded address inside node_modules/grpc-validation/src/index.js.
Always attach .catch() to promises.
Access via array indices: res.Data[0] for key, res.Data[1] for secret.
Manually validate the order object before calling getValidateOrder.
Install grpc manually: npm install grpc
Use const { getIssue } = require('grpc-validation'); or import { getIssue } from 'grpc-validation';Ensure the gRPC server is running on localhost:50051 (or update the address in the source).
No dependency data recorded yet.