
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
grpc-promisify
Advanced tools
gRPC is a high performance, open source, general-purpose RPC framework, grpc-promisify
make gRPC client promisify in node.
$ npm install grpc-promisify
##The Gist
const PROTO_PATH = __dirname + '/hello.proto';
const promisify = require('grpc-promisify');
const grpc = require('grpc');
const hello_proto = grpc.load(PROTO_PATH).helloworld;
function main() {
const client = new hello_proto.Greeter('localhost:50051', grpc.credentials.createInsecure());
const user = 'hello';
promisify(client);
client.sayHello({name: user})
.then(res => console.log(res.message))
.catch(err => console.error(err));
}
main();
The MIT license.
FAQs
Make gRPC client promisify
The npm package grpc-promisify receives a total of 340 weekly downloads. As such, grpc-promisify popularity was classified as not popular.
We found that grpc-promisify 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.