{"_id":"vscode-jsonrpc@9.0.2","tag":"latest","bugs":{"url":"https://github.com/Microsoft/vscode-languageserver-node/issues"},"dist":{"shasum":"086b76c4f94f1b0743deeac4e0b57c9c4a55e81d","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-9.0.2.tgz","fileCount":45,"integrity":"sha512-SbQSV9yRemARxeXw6LU5sS6Zq0e9/DgCCX5yelH263ZQWukbTk8EF8fjTrr1dziasf4GwlJbvTwFnTrnQFWZXQ==","signatures":[{"sig":"MEYCIQDe9xPrRHP5PRscQXWiZK7UN7xCvA2UWTeloTmbTpjHPAIhAI23jhSvToTtfJhNURTeDx8uN3P+FiykFXMC5Jio/tHg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE2PtpIfesnzIhv3XZtR1q3LxHDcl3Armf1nizNYZJ5/AiEA2NCjpcZyL0hr89taFbfrvcAEKBPRZdP3azjKJ+Vdajw="}],"unpackedSize":225125,"size":37461,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-9.0.2.tgz"},"name":"vscode-jsonrpc","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\4474acc9-e80b-45dc-a4fe-b3fefb530cf8\\vscode-jsonrpc-9.0.2.tgz","author":{"name":"Microsoft Corporation"},"engines":{"node":">=14.0.0"},"exports":{".":{"types":"./lib/common/api.d.ts","default":"./lib/common/api.js"},"./node":{"node":"./lib/node/main.js","types":"./lib/node/main.d.ts"},"./browser":{"types":"./lib/browser/main.d.ts","browser":"./lib/browser/main.js"}},"license":"MIT","scripts":{"all":"npm run clean && npm run compile && npm run lint && npm run test","lint":"eslint src","test":"npm run test:node && npm run test:browser","clean":"rimraf lib && rimraf dist","watch":"tsc -b ./tsconfig.watch.json -w","compile":"tsc -b ./tsconfig.json","prepack":"npm run all:publish","webpack":"node ../build/bin/webpack  --mode none --config ./webpack.config.js","test:node":"node ../node_modules/mocha/bin/_mocha","preversion":"npm test","all:publish":"git clean -xfd . && npm install && npm run compile:publish && npm run lint && npm run test","test:browser":"npm run webpack:test:silent && node ../build/bin/runBrowserTests.js  http://127.0.0.1:8080/jsonrpc/src/browser/test/","webpack:test":"node ../build/bin/webpack --mode none --config ./src/browser/test/webpack.config.js","prepublishOnly":"echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail","compile:publish":"tsc -b ./tsconfig.publish.json","webpack:test:silent":"node ../build/bin/webpack --no-stats --mode none --config ./src/browser/test/webpack.config.js"},"version":"9.0.2","_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"homepage":"https://github.com/Microsoft/vscode-languageserver-node#readme","_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\4474acc9-e80b-45dc-a4fe-b3fefb530cf8\\vscode-jsonrpc-9.0.2.tgz","_integrity":"sha512-SbQSV9yRemARxeXw6LU5sS6Zq0e9/DgCCX5yelH263ZQWukbTk8EF8fjTrr1dziasf4GwlJbvTwFnTrnQFWZXQ==","repository":{"url":"git+https://github.com/Microsoft/vscode-languageserver-node.git","type":"git","directory":"jsonrpc"},"description":"A json rpc implementation over streams","directories":{},"maintainers":[{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"},{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"kaimaetzel","email":"kamaet@microsoft.com"},{"name":"lszomoru","email":"lszomoru@microsoft.com"},{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"}],"_nodeVersion":"18.5.0","_hasShrinkwrap":false,"devDependencies":{"msgpack-lite":"^0.1.26","@types/msgpack-lite":"^0.1.12"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vscode-jsonrpc_9.0.2_1787898980857_0.8363075565942686"},"readme":"# VSCode JSON RPC\n\n[![NPM Version](https://img.shields.io/npm/v/vscode-jsonrpc.svg)](https://npmjs.org/package/vscode-jsonrpc)\n[![NPM Downloads](https://img.shields.io/npm/dm/vscode-jsonrpc.svg)](https://npmjs.org/package/vscode-jsonrpc)\n[![Build Status](https://dev.azure.com/vscode/vscode-languageserver-node/_apis/build/status%2Fvscode-languageserver-node?branchName=main)](https://dev.azure.com/vscode/vscode-languageserver-node/_build/latest?definitionId=52&branchName=main)\n\nThis npm module implements the base messaging protocol spoken between a VSCode language server and a VSCode language client.\n\nThe npm module can also be used standalone to establish a [JSON-RPC](http://www.jsonrpc.org/) channel between\na client and a server. Below an example how to setup a JSON-RPC connection. First the client side.\n\n```ts\nimport * as cp from 'child_process';\nimport * as rpc from 'vscode-jsonrpc/node';\n\nlet childProcess = cp.spawn(...);\n\n// Use stdin and stdout for communication:\nlet connection = rpc.createMessageConnection(\n\tnew rpc.StreamMessageReader(childProcess.stdout),\n\tnew rpc.StreamMessageWriter(childProcess.stdin));\n\nlet notification = new rpc.NotificationType<string, void>('testNotification');\n\nconnection.listen();\n\nconnection.sendNotification(notification, 'Hello World');\n```\n\nThe server side looks very symmetrical:\n\n```ts\nimport * as rpc from 'vscode-jsonrpc/node';\n\n\nlet connection = rpc.createMessageConnection(\n\tnew rpc.StreamMessageReader(process.stdin),\n\tnew rpc.StreamMessageWriter(process.stdout));\n\nlet notification = new rpc.NotificationType<string, void>('testNotification');\nconnection.onNotification(notification, (param: string) => {\n\tconsole.log(param); // This prints Hello World\n});\n\nconnection.listen();\n```\n\n# History\n\nFor the history please see the [main repository](https://github.com/Microsoft/vscode-languageserver-node/blob/master/README.md)\n\n\n## License\n[MIT](https://github.com/Microsoft/vscode-languageserver-node/blob/master/License.txt)\n","publish_time":1787898980949,"_cnpm_publish_time":1787898980949,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}