Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
grpc-man
Advanced tools
Readme
A client to call gRPC server methods on the fly.
The name is inspired by
post-man
.
This package provides a lightweight gRPC client implementation, which can be used to verify your gRPC service is working as expected or not.
I am using it heavily for testing code, and recommend you to use it too.
# Globally
npm install -g grpc-man
# Only in project and for testing purpose
npm install --save-dev grpc-man
javascript
projectimport GrpcClient from 'grpc-man/lib/Client';
async function main() {
const client = new GrpcClient('<yourhost>:<your port>', __dirname + 'your.proto');
await client.grpc.youpackage.YourService.yourMethod(arg);
}
If your project provides services through gRPC, then you can use grpc-man
to do the automatic testing against your gRPC services.
The proto file used for testing is here。
import assert = require('assert');
import GrpcClient from 'grpc-man/lib/Client';
describe('grpc', () => {
it('greets', async () => {
const client = new Client('0.0.0.0:8890', __dirname + '/./proto/helloworld.proto');
const res = await client.grpc.helloworld.Greeter.sayHello({ name: 'name' });
assert.deepEqual(res, { message: 'Hello name' });
});
});
If you are using jest
testing framework, then you can refer to the testing code for this package itself。
grpc-man <endpoint> <protoFilePath>
# for example:
grpc-man localhost:8080 /path/to/proto_file
npm start <endpoint> <protoFilePath>
# for example:
npm start localhost:8080 /path/to/proto_file
npm run client
FAQs
A client to call gRPC server methods on the fly. 一个 gRPC 客户端,可以灵活地调用 gRPC 服务。
The npm package grpc-man receives a total of 48 weekly downloads. As such, grpc-man popularity was classified as not popular.
We found that grpc-man demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.