{"_id":"@142vip/grpc","_rev":"5-b1059dc8a930ef911f48c5461997b2b8","name":"@142vip/grpc","dist-tags":{"latest":"0.0.1-alpha.5"},"versions":{"0.0.1-alpha.1":{"name":"@142vip/grpc","version":"0.0.1-alpha.1","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/grpc","grpc"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/grpc@0.0.1-alpha.1","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/oauth/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"c43d0b40f4aa9c00fefa094dfc9fb0b5150c25bd","tarball":"https://registry.npmjs.org/@142vip/grpc/-/grpc-0.0.1-alpha.1.tgz","fileCount":8,"integrity":"sha512-dRnBz/LHVBlWKGovDxzHy1SqisaRTtcBrklDFg6F73wuYfyq7+hIme3/eay5HNoNh5hAom0t8xYfxA6byc0MVA==","signatures":[{"sig":"MEUCIADzZPwBLurPs2BTzhO53Xl/00QZHB1ubcgYyKAMduXtAiEA0KmOt8Wjhuqmw3ptIGywa4tkUMwH1zV2oQBSLfVPGJw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15153},"main":"./dist/index.mjs","_from":"file:142vip-grpc-0.0.1-alpha.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"private":false,"scripts":{"build":"unbuild","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/23052a89f6d5c0380ed9780c23c75409/142vip-grpc-0.0.1-alpha.1.tgz","_integrity":"sha512-dRnBz/LHVBlWKGovDxzHy1SqisaRTtcBrklDFg6F73wuYfyq7+hIme3/eay5HNoNh5hAom0t8xYfxA6byc0MVA==","repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/grpc"},"_npmVersion":"10.5.0","description":"公众号搜：储凡","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"@grpc/grpc-js":"^1.12.5","@grpc/proto-loader":"^0.7.13"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/grpc_0.0.1-alpha.1_1737375086234_0.0013520436092990806","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.2":{"name":"@142vip/grpc","version":"0.0.1-alpha.2","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/grpc","grpc","proto","proto-loader","grpc-health"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/grpc@0.0.1-alpha.2","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/oauth/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"28f114f3c078db2a536dcadd750f2982eb1bc018","tarball":"https://registry.npmjs.org/@142vip/grpc/-/grpc-0.0.1-alpha.2.tgz","fileCount":14,"integrity":"sha512-/okajRRIWIFHnt8OfaGQcqJSoyIjmHKy5Ogey0ymAWCTw8MXt2cRfxtFvgJe8oTuLhbViBPGqbZXIZ5VFaxDEg==","signatures":[{"sig":"MEQCIBwOyqBKHaCAJvd+BDzxpUJK+ncwEOHqRIbd1O+1/UglAiARqYjNRtAkNTddxXGIUXOL1OhxlOa41KKYqDB5ORJrjQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86896},"main":"./dist/index.mjs","_from":"file:142vip-grpc-0.0.1-alpha.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"private":false,"scripts":{"test":"npx jest","build":"unbuild","typecheck":"tsc --noEmit","dev:client":"node example-client.js","dev:server":"node example-server.js","test:coverage":"npx jest --coverage"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/580963619475bff92f5ad99825102d3c/142vip-grpc-0.0.1-alpha.2.tgz","_integrity":"sha512-/okajRRIWIFHnt8OfaGQcqJSoyIjmHKy5Ogey0ymAWCTw8MXt2cRfxtFvgJe8oTuLhbViBPGqbZXIZ5VFaxDEg==","authorInfo":{"url":"https://github.com/142vip","name":"微信公众号：储凡","email":"fairy_vip@2925.com","homePage":"https://142vip.cn"},"repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/grpc"},"_npmVersion":"10.5.0","description":"Grpc工具包，支持proto文件加载、解析，Grpc客户端、服务端数据连接交互，支持健康检查","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"@grpc/grpc-js":"1.14.0","@grpc/proto-loader":"0.8.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/grpc_0.0.1-alpha.2_1758766076329_0.13820524302924064","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.3":{"name":"@142vip/grpc","version":"0.0.1-alpha.3","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/grpc","grpc","proto","proto-loader","grpc-health"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/grpc@0.0.1-alpha.3","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/oauth/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"07a7942f3de2dc5365f398d4cc688d16fe541943","tarball":"https://registry.npmjs.org/@142vip/grpc/-/grpc-0.0.1-alpha.3.tgz","fileCount":14,"integrity":"sha512-SoD60RmZyPYJAMGtjXEB9zVgTjOxxMaBb5Lt9VgM1NtEcYBx8UQUVr68TA1s1wNpe3yceIh7jROzKMMWGFbd4w==","signatures":[{"sig":"MEYCIQC7Cf5HULzgSSV9CEJkElNAe7tcitQQWULtuo9pOau29gIhAJsnzc3c867tezsJDCNzYSL+sVnDQUwgaxnR2lonOn7s","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86896},"main":"./dist/index.mjs","_from":"file:142vip-grpc-0.0.1-alpha.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"private":false,"scripts":{"test":"npx jest","build":"unbuild","typecheck":"tsc --noEmit","dev:client":"node example-client.js","dev:server":"node example-server.js","test:coverage":"npx jest --coverage"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/d849dbc4c51a92d5e6f76e1b6ba1018c/142vip-grpc-0.0.1-alpha.3.tgz","_integrity":"sha512-SoD60RmZyPYJAMGtjXEB9zVgTjOxxMaBb5Lt9VgM1NtEcYBx8UQUVr68TA1s1wNpe3yceIh7jROzKMMWGFbd4w==","authorInfo":{"url":"https://github.com/142vip","name":"微信公众号：储凡","email":"fairy_vip@2925.com","homePage":"https://142vip.cn"},"repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/grpc"},"_npmVersion":"10.5.0","description":"Grpc工具包，支持proto文件加载、解析，Grpc客户端、服务端数据连接交互，支持健康检查","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"@grpc/grpc-js":"1.14.0","@grpc/proto-loader":"0.8.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/grpc_0.0.1-alpha.3_1758985574975_0.7755167094486444","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.4":{"name":"@142vip/grpc","version":"0.0.1-alpha.4","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/grpc","grpc","proto","proto-loader","grpc-health"],"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","_id":"@142vip/grpc@0.0.1-alpha.4","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"homepage":"https://142vip.github.io/core-x/packages/oauth/","bugs":{"url":"https://github.com/142vip/core-x/issues"},"dist":{"shasum":"3d6b38006ab76a5621164aaf6e3ff29771ddf412","tarball":"https://registry.npmjs.org/@142vip/grpc/-/grpc-0.0.1-alpha.4.tgz","fileCount":14,"integrity":"sha512-gxIHMi7EA+EfPUFP3qWbaTAHvsIJV77/Yq+JlTcXcMWL5YcAmGVYGimZCfXxkhMnH0rpvgEjIcM5KKcw7wLVEg==","signatures":[{"sig":"MEUCIQDTPQvpLaELIhs8lkrTAq3c2D6tUVSChFrsJ5CGi0vqtAIgVsZ2C6fXDzuyzereckFRkXicKCnwTfT4oJvReDnxCt4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":101759},"main":"./dist/index.mjs","_from":"file:142vip-grpc-0.0.1-alpha.4.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"private":false,"scripts":{"test":"npx jest","build":"unbuild","typecheck":"tsc --noEmit","dev:client":"node example-client.js","dev:server":"node example-server.js","test:coverage":"npx jest --coverage"},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"_resolved":"/tmp/83abb2a8c87e00080b5a96f078e3ea2f/142vip-grpc-0.0.1-alpha.4.tgz","_integrity":"sha512-gxIHMi7EA+EfPUFP3qWbaTAHvsIJV77/Yq+JlTcXcMWL5YcAmGVYGimZCfXxkhMnH0rpvgEjIcM5KKcw7wLVEg==","authorInfo":{"url":"https://github.com/142vip","name":"微信公众号：储凡","email":"fairy_vip@2925.com","homePage":"https://142vip.cn"},"repository":{"url":"git+https://github.com/142vip/core-x.git","type":"git","directory":"packages/grpc"},"_npmVersion":"10.5.0","description":"Grpc工具包，支持proto文件加载、解析，Grpc客户端、服务端数据连接交互，支持健康检查","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","dependencies":{"@grpc/grpc-js":"1.14.0","@grpc/proto-loader":"0.8.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/grpc_0.0.1-alpha.4_1760611945646_0.3154909556119714","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-alpha.5":{"name":"@142vip/grpc","version":"0.0.1-alpha.5","private":false,"description":"Grpc工具包，支持proto文件加载、解析，Grpc客户端、服务端数据连接交互，支持健康检查","author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","homepage":"https://142vip.github.io/core-x/packages/oauth/","repository":{"type":"git","url":"git+https://github.com/142vip/core-x.git","directory":"packages/grpc"},"keywords":["公众号搜：储凡","142vip","@142vip","@142vip/grpc","grpc","proto","proto-loader","grpc-health"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","authorInfo":{"name":"微信公众号：储凡","email":"fairy_vip@2925.com","url":"https://github.com/142vip","homePage":"https://142vip.cn"},"dependencies":{"@grpc/grpc-js":"1.14.0","@grpc/proto-loader":"0.8.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"scripts":{"dev:client":"node example-client.js","dev:server":"node example-server.js","test":"npx jest","test:coverage":"npx jest --coverage","build":"unbuild","typecheck":"tsc --noEmit"},"bugs":{"url":"https://github.com/142vip/core-x/issues"},"_id":"@142vip/grpc@0.0.1-alpha.5","_integrity":"sha512-p2t/6TxN7bS4u6NICo8qHFMVSQYjs8e+TCUKqxzNERcmCHAJVNR9duxE0LzrU+mTY+OF1twLCsQohylHn+ui+w==","_resolved":"/tmp/2b47d658bd6545d8412c7d8a6c18f439/142vip-grpc-0.0.1-alpha.5.tgz","_from":"file:142vip-grpc-0.0.1-alpha.5.tgz","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-p2t/6TxN7bS4u6NICo8qHFMVSQYjs8e+TCUKqxzNERcmCHAJVNR9duxE0LzrU+mTY+OF1twLCsQohylHn+ui+w==","shasum":"4eb1db043201dfb133399fc2cf39f55e9bd924b9","tarball":"https://registry.npmjs.org/@142vip/grpc/-/grpc-0.0.1-alpha.5.tgz","fileCount":14,"unpackedSize":101759,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAjtvSEr6x/07BbHZpkbFYrdkP7Y0pS4o83UD0aEYyDHAiAEa0ABdue/E+xknBsZ4AnvamBArkZcvoMyTcoG2P8p0g=="}]},"_npmUser":{"name":"mmdapl","email":"2237221210@qq.com"},"directories":{},"maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/grpc_0.0.1-alpha.5_1760689678943_0.11543489667379547"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-20T12:11:26.112Z","modified":"2025-10-17T08:27:59.359Z","0.0.1-alpha.1":"2025-01-20T12:11:26.406Z","0.0.1-alpha.2":"2025-09-25T02:07:56.504Z","0.0.1-alpha.3":"2025-09-27T15:06:15.175Z","0.0.1-alpha.4":"2025-10-16T10:52:25.822Z","0.0.1-alpha.5":"2025-10-17T08:27:59.136Z"},"bugs":{"url":"https://github.com/142vip/core-x/issues"},"author":{"name":"mmdapl","email":"mmdapl@163.com"},"license":"MIT","homepage":"https://142vip.github.io/core-x/packages/oauth/","keywords":["公众号搜：储凡","142vip","@142vip","@142vip/grpc","grpc","proto","proto-loader","grpc-health"],"repository":{"type":"git","url":"git+https://github.com/142vip/core-x.git","directory":"packages/grpc"},"description":"Grpc工具包，支持proto文件加载、解析，Grpc客户端、服务端数据连接交互，支持健康检查","maintainers":[{"name":"mmdapl","email":"2237221210@qq.com"}],"readme":"# @142vip/grpc\n\n[![NPM version](https://img.shields.io/npm/v/@142vip/grpc?labelColor=0b3d52&color=1da469&label=version)](https://www.npmjs.com/package/@142vip/grpc)\n\n`Grpc`工具包，支持`proto`文件加载、解析，`Grpc`客户端、服务端数据连接交互，支持健康检查。\n\n## 安装\n\n```shell\n# npm\nnpm install @142vip/grpc\n# pnpm\npnpm i @142vip/grpc\n```\n\n## 使用\n\n### Proto解析\n\n默认解析配置：\n\n```typescript\nexport const DEFAULT_LOADER_OPTIONS: VipProtoLoaderOptions = {\n  keepCase: true,\n  longs: String,\n  enums: String,\n  defaults: true,\n  oneofs: true,\n}\n```\n\n### GRPC服务端\n\n### GRPC客户端\n\n## 最佳实践\n\n- [GRPC服务端示例](example-client.js)\n- [GRPC客户端示例](example-server.js)\n\n## 健康检查\n\n- [health.proto](https://github.com/142vip/core-x/tree/main/packages/grpc/protos/health.proto)\n\n## 单元测试\n\n- [proto-loader.spec.ts](https://github.com/142vip/core-x/tree/main/packages/grpc/test/proto-loader.spec.ts)\n- [grpc-client.spec.ts](https://github.com/142vip/core-x/tree/main/packages/grpc/test/grpc-client.spec.ts)\n- [grpc-server.spec.ts](https://github.com/142vip/core-x/tree/main/packages/grpc/test/grpc-server.spec.ts)\n\n## 参考\n\n- [GRPC 官网](https://grpc.io/docs/)\n- [GRPC Node 官方文档](https://grpc.io/docs/languages/node/)\n\n## 证书\n\n[MIT](https://opensource.org/license/MIT)\n\nCopyright (c) 2019-present, @142vip 储凡\n\n**仅供学习参考，商业使用请保留作者版权信息，作者不保证也不承担任何软件的使用风险。**\n","readmeFilename":"README.md"}