Socket
Socket
Sign inDemoInstall

grpc-reflection-js

Package Overview
Dependencies
38
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
1
Weekly downloads
1,721
increased by15.43%
Install size
8.57 MB

Weekly downloads

Readme

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

Last updated on 05 Aug 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc