Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
redhoyasa committed Feb 13, 2021
1 parent 13fb06c commit f35c7f9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ npm install grpc-reflection-js
```

## Usage
- [Initialize client](#Initialize client)
- [Initialize client](#Initialize)
- [listServices](#listServices): List gRPC services
- [fileContainingSymbol](#fileContainingSymbol): Get protobuf Root using fully-qualified symbol name
- [fileByFilename](#fileByFilename): Get protobuf Root using proto file name


### Initialize client
### Initialize
```js
const grpc = require('grpc');
const grpcReflection = require('grpc-reflection-js');
Expand Down Expand Up @@ -48,3 +48,9 @@ const root = await reflectionClient.fileContainingSymbol('phone.Messenger')
```js
const root = await reflectionClient.fileContainingSymbol('contact.proto')
```

## License

[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?maxAge=2592000)](https://raw.githubusercontent.com/apollostack/apollo-ios/master/LICENSE)

MIT

0 comments on commit f35c7f9

Please sign in to comment.