Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpc-reflection-js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-reflection-js

[![npm version](https://badge.fury.io/js/grpc-reflection-js.svg)](https://badge.fury.io/js/grpc-reflection-js) ![CI](https://github.com/redhoyasa/grpc-reflection-js/workflows/CI/badge.svg) [![codecov](https://codecov.io/gh/redhoyasa/grpc-reflection-js/bra

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
659
decreased by-23.64%
Maintainers
1
Weekly downloads
 
Created
Source

gRPC Reflection JS

npm version CI codecov

A JS library for talking with any gRPC Server that implements Reflection protocol.

Installation

Install with npm:

npm install grpc-reflection-js @grpc/grpc-js

Install with yarn:

yarn add grpc-reflection-js @grpc/grpc-js

Usage

Initialize

const grpc = require('grpc');
const grpcReflection = require('grpc-reflection-js');

const grpcReflectionServer = '<gRPC Reflection server host>'
const reflectionClient = new grpcReflection.Client(
  grpcReflectionServer,
  grpc.credentials.createInsecure()
);

listServices

const services = await reflectionClient.listServices()

Output

['grpc.reflection.v1alpha.ServerReflection', 'phone.Messenger']

fileContainingSymbol

const root = await reflectionClient.fileContainingSymbol('phone.Messenger')

fileByFilename

const root = await reflectionClient.fileContainingSymbol('contact.proto')

License

GitHub license

MIT

Keywords

FAQs

Package last updated on 05 Aug 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc