{"_id":"@ardatan/grpc-reflection-js","_rev":"1-76ff284dbb2205496a7b12ceab79bc15","name":"@ardatan/grpc-reflection-js","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@ardatan/grpc-reflection-js","version":"0.0.1","main":"build/src/index.js","repository":{"type":"git","url":"https://github.com/redhoyasa/grpc-reflection-js"},"author":{"name":"redhoyasa@gmail.com"},"license":"MIT","dependencies":{"@types/google-protobuf":"^3.7.2","@types/lodash.set":"^4.3.6","google-protobuf":"^3.12.2","lodash.set":"^4.3.2","protobufjs":"^7.0.0"},"devDependencies":{"@grpc/grpc-js":"^1.3.2","@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^13.11.1","@types/sinon":"^9.0.4","@typescript-eslint/eslint-plugin":"^2.33.0","@typescript-eslint/parser":"^2.33.0","chai":"^4.2.0","eslint":"^7.0.0","eslint-config-prettier":"^6.11.0","eslint-plugin-jest":"^23.11.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.3","grpc-tools":"^1.9.1","grpc_tools_node_protoc_ts":"^5.0.0","gts":"^2.0.2","mocha":"^7.2.0","nyc":"^15.1.0","prettier":"^2.0.5","sinon":"^9.0.2","ts-node":"^8.10.2","typescript":"^3.9.5"},"scripts":{"check":"gts check","clean":"gts clean","compile":"tsc","fix":"gts fix","test":"nyc mocha -r ts-node/register test/**/*.test.ts","report":"nyc report --reporter=json","prepare":"yarn run compile","pretest":"yarn run compile && yarn run fix","posttest":"yarn run check","protoc":"grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src --grpc_out=grpc_js:./src --ts_out=grpc_js:./src --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I ./static/grpc/reflection/v1alpha reflection.proto","build":"yarn run compile && yarn run fix && yarn run check"},"keywords":["grpc","gRPC"],"types":"build/src/index.d.ts","peerDependencies":{"@grpc/grpc-js":"^1.0.0"},"publishConfig":{"access":"public"},"description":"[![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","licenseText":"MIT License\n\nCopyright (c) 2020 Muhammad Redho Ayassa\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ardatan/grpc-reflection-js@0.0.1","dist":{"shasum":"1e08dbbbf949bd666738a3e6bcdf2be34d82b56c","integrity":"sha512-dnguvH+xhEyULvbNlPSi6AByv/4nAYXen057Tr5kyng3EFOx4TFSO/J69Sb7U+MGDD8dhCMIL6O5Vs2c2b3TiA==","tarball":"https://registry.npmjs.org/@ardatan/grpc-reflection-js/-/grpc-reflection-js-0.0.1.tgz","fileCount":28,"unpackedSize":161032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCvYe4Mqj8dRT1jxZVh3eY1K5Xm44ElrSJLh/poqERGwIgCEWSkH9SYZ1pXBpZxLwsDmZEl5qw3//Onmv7DsqfzaY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1uChACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq76w/7B1aHo+mC3EdZFJmLyX5O0zBlzxrGRlVDF2/iQIVOOwynSdvT\r\nIhpxzf2uhEwAesot2a+eo0vbledxaMzc+TtyKD6Ez5Hmnvsv0fHTG/l7yf0u\r\nnOa/jsI9Ey6PMJ/ET5997Zu9FBdKKMY2lYQmN4iNxs8gpZ8o+n4jCQpIifxE\r\nNMjI1J2tOFZVHd0xrGzQiNcfIvdWfmcmLve/UxRmVR6YsX8i3GQFbG7W6Nky\r\nhTnmnMTyA7TYasy48bcBHQc5I375CcDS6vKj53l+MuimbohrbgU+g6Vat16H\r\nzGLJ9/1Q5s/YIx/+B4trO9CccYhfV+WtgzHxSaMDRhwuzU2TYWj0MNDWN4ZF\r\no8dS1bjEjn8Off5BnjdrrgZow0Q9GtL7yTbRob5N7opPGODkR4UThz5RWJTo\r\nGcxUyAy0+HhX3rjwv+pRNTofhMEFsgP1wjYFgZLNRUjMZqkChbrRHkfYhIvV\r\nWjk+AD9LXIs1w0KXVwAOTfAEb9plOLLdcL34T4JdG0NCcmePn1e4leSGNole\r\n8bDNGzWn+hlZxwdIrXoyRQ7GBerJnQ3xABwl9bqbg6VaKy1OJCFa9yPoUlve\r\nUe8qqz13HY9xW7F41+0dW+BZdHudJXtajpyfSiCYbxXnVoERmb9J4OrTtshs\r\nYB7swYNSAesRBvBVhPyeogei5Im26E5v/uQ=\r\n=HyKW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"maintainers":[{"name":"ardatan","email":"ardatanrikulu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grpc-reflection-js_0.0.1_1658249376917_0.8172197282394889"},"_hasShrinkwrap":false},"0.0.2":{"name":"@ardatan/grpc-reflection-js","version":"0.0.2","main":"build/src/index.js","repository":{"type":"git","url":"https://github.com/redhoyasa/grpc-reflection-js"},"author":{"name":"redhoyasa@gmail.com"},"license":"MIT","dependencies":{"@types/google-protobuf":"^3.7.2","@types/lodash.set":"^4.3.6","google-protobuf":"^3.12.2","lodash.set":"^4.3.2"},"devDependencies":{"@grpc/grpc-js":"^1.3.2","@types/chai":"^4.2.11","@types/mocha":"^7.0.2","@types/node":"^13.11.1","@types/sinon":"^9.0.4","@typescript-eslint/eslint-plugin":"^2.33.0","@typescript-eslint/parser":"^2.33.0","chai":"^4.2.0","eslint":"^7.0.0","eslint-config-prettier":"^6.11.0","eslint-plugin-jest":"^23.11.0","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.3","grpc-tools":"^1.9.1","grpc_tools_node_protoc_ts":"^5.0.0","gts":"^2.0.2","mocha":"^7.2.0","nyc":"^15.1.0","prettier":"^2.0.5","sinon":"^9.0.2","ts-node":"^8.10.2","typescript":"^3.9.5"},"scripts":{"check":"gts check","clean":"gts clean","compile":"tsc","fix":"gts fix","test":"nyc mocha -r ts-node/register test/**/*.test.ts","report":"nyc report --reporter=json","prepare":"yarn run compile","pretest":"yarn run compile && yarn run fix","posttest":"yarn run check","protoc":"grpc_tools_node_protoc --js_out=import_style=commonjs,binary:./src --grpc_out=grpc_js:./src --ts_out=grpc_js:./src --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts -I ./static/grpc/reflection/v1alpha reflection.proto","build":"yarn run compile && yarn run fix && yarn run check"},"keywords":["grpc","gRPC"],"types":"build/src/index.d.ts","peerDependencies":{"protobufjs":"^7.0.0","@grpc/grpc-js":"^1.0.0"},"publishConfig":{"access":"public"},"description":"[![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","licenseText":"MIT License\n\nCopyright (c) 2020 Muhammad Redho Ayassa\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@ardatan/grpc-reflection-js@0.0.2","dist":{"shasum":"e10f76e9b59c6ce1a8cd37bbfa3d47d596dea3b8","integrity":"sha512-O9UD3OLbtJ7DDZxiJs0ngmcJ9lWibx1RNL4WjiJPZC5s4RBkybwMgTgq8bBS7GF8iIkn+vkAGUt746GSW4d52A==","tarball":"https://registry.npmjs.org/@ardatan/grpc-reflection-js/-/grpc-reflection-js-0.0.2.tgz","fileCount":28,"unpackedSize":161032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4a+TeYeNnWM0W68Fi+w7z06uFQGHhcWQNclJPs7yVbQIgJ24vb8MknFAaDgyQBSDIxqH8emCPjoNDfPnmmF5CyIs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1uDeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkEg/+OKMcYKaueZaEyTOb/PSmGdsVki+tvgzvShEH8vvJtmt8aMPr\r\ni4ZoqlbKZQ5Kq2SiqN1hAySD4OZiuBk3l4v2P4d8SVcB++vdowq5rEqIE6SK\r\ngYpihOMyxppGgj42uwewv3bP3ObyFhLr9E4ynpuQPhBN44CLwoxB0NVYoUEC\r\n8SlMQwI77mIWuY6B6fnMRNhO0W99mg4z24+OPQXshTgB1nwp5XVeuFBGvDC8\r\nkyI2W6Wo6JcZyixGOGlN+3GCEOhvExaxC34YjT2GUqxOccPHi4bZTnW3b4Xs\r\nCzwtQ0141p8C1MNXFe0V+VFYGWPUsN7L+E2Uvvt0CzOoowNQByABMaa0b+Xk\r\nQMLC/XApnnnlK+chBIWs3EahpX08Dc7QdzyEXgfdD95sNHGTOvh2cVMcFPPJ\r\ne7Pw0xjpZ7Y6ximt0SiKItJ4AbXLaSwBS0LV8s8Hb5+uYvi/D8W67QrgSUiF\r\nq+E/xIMx2dU0W1xh9V0XUvNsdsGkd1MDCj0XYyGFXfFxgOSke9VihlEYUMt+\r\nrIc1P87gjVW5Csx2IjGFACt0IVtJbhATpGm0v2zzScOyOGgpI+2pDNsw4FGH\r\npLJFy0yni025U+0UaBEkANAr3wCMju6W0KvHDI3InLT4vtvXOroY4+nzqiMi\r\nhwW2wDgNc855P12U0z+dZgaGgh/itD6GwEc=\r\n=D5sU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"maintainers":[{"name":"ardatan","email":"ardatanrikulu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/grpc-reflection-js_0.0.2_1658249437789_0.968616623896742"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-19T16:49:36.854Z","0.0.1":"2022-07-19T16:49:37.092Z","modified":"2022-07-19T16:50:38.076Z","0.0.2":"2022-07-19T16:50:37.998Z"},"maintainers":[{"name":"ardatan","email":"ardatanrikulu@gmail.com"}],"description":"[![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","keywords":["grpc","gRPC"],"repository":{"type":"git","url":"https://github.com/redhoyasa/grpc-reflection-js"},"author":{"name":"redhoyasa@gmail.com"},"license":"MIT","readme":"# gRPC Reflection JS\n[![npm version](https://badge.fury.io/js/grpc-reflection-js.svg)](https://badge.fury.io/js/grpc-reflection-js)\n![CI](https://github.com/redhoyasa/grpc-reflection-js/workflows/CI/badge.svg)\n[![codecov](https://codecov.io/gh/redhoyasa/grpc-reflection-js/branch/master/graph/badge.svg)](https://codecov.io/gh/redhoyasa/grpc-reflection-js)\n\nA JS library for talking with any gRPC Server that implements [Reflection](https://github.com/grpc/grpc/blob/master/doc/server-reflection.md) protocol.\n\n## Installation\n\nInstall with npm:\n```sh\nnpm install grpc-reflection-js @grpc/grpc-js\n```\n\nInstall with yarn:\n```sh\nyarn add grpc-reflection-js @grpc/grpc-js\n```\n\n## Usage\n- [Initialize client](#Initialize)\n- [listServices](#listServices): List gRPC services\n- [fileContainingSymbol](#fileContainingSymbol): Get protobuf Root using fully-qualified symbol name\n- [fileByFilename](#fileByFilename): Get protobuf Root using proto file name\n\n\n### Initialize\n```js\nconst grpc = require('grpc');\nconst grpcReflection = require('grpc-reflection-js');\n\nconst grpcReflectionServer = '<gRPC Reflection server host>'\nconst reflectionClient = new grpcReflection.Client(\n  grpcReflectionServer,\n  grpc.credentials.createInsecure()\n);\n```\n\n### listServices\n```js\nconst services = await reflectionClient.listServices()\n```\nOutput\n```text\n['grpc.reflection.v1alpha.ServerReflection', 'phone.Messenger']\n```\n\n### fileContainingSymbol\n```js\nconst root = await reflectionClient.fileContainingSymbol('phone.Messenger')\n```\n\n### fileByFilename\n```js\nconst root = await reflectionClient.fileContainingSymbol('contact.proto')\n```\n\n## License\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?maxAge=2592000)](https://raw.githubusercontent.com/apollostack/apollo-ios/master/LICENSE)\n\nMIT\n","readmeFilename":"README.md"}