{"name":"vscode-jsonrpc","version":"5.0.0-next.6","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@5.0.0-next.6","maintainers":[{"name":"aeschli","email":"martinae@microsoft.com"},{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"bpasero","email":"benjpas@microsoft.com"},{"name":"chrisdias","email":"cdias@microsoft.com"},{"name":"dbaeumer","email":"dirk.baeumer@gmail.com"},{"name":"egamma","email":"egamma@microsoft.com"},{"name":"isidor","email":"inikolic@microsoft.com"},{"name":"joaomoreno.ms","email":"joao.moreno@microsoft.com"},{"name":"jrieken","email":"jrieken@microsoft.com"},{"name":"kaimaetzel","email":"kamaet@microsoft.com"},{"name":"ramya-rao-a","email":"ramya.rao.a@outlook.com"}],"homepage":"https://github.com/Microsoft/vscode-languageserver-node#readme","bugs":{"url":"https://github.com/Microsoft/vscode-languageserver-node/issues"},"dist":{"shasum":"a348fadfc8c8056dd8b2207268ab876e1296a71e","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-5.0.0-next.6.tgz","fileCount":26,"integrity":"sha512-eCrydRWmzPBGhyWCHBUKWhTSEbbAh63gWWe3ZtIVPpHPZsK9bxtXp8/rXlprKJtmZDn8Ui4WKdpWkgSX66cj0A==","signatures":[{"sig":"MEQCIFPwvTH614+LXwhM1UcVlQUtaRnsAQISCmYrJUWUmJOmAiBw2RNCXxO6qc54FJbt6FTyDrzuwD5S8oBL7z/i7kE2Tw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":121973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHE7HCRA9TVsSAnZWagAAzGcQAInEqAuTK4VU4q+ANtWx\nCmpy752yQZfcU8541PoRV1WRbL6G2mWbrosxNjdgxOH6OHvBtKpnaDnFfE9x\nF3SH2snOeyXfr11YBFbu6b1IYUEC7YlunCZsXspmg+uWRcxgKkYZ+We308+8\nHG14r1luEZjZNc5K3mxZeulirPuxnDw8x+PiOmzDMSQfDQKLG8tcb1ENEF9t\nXfYongFgMrwpRJZP+OIN/MxnqyEBRIun33g0WBy0eMOxaP1q3opu53HMKt/5\n1k556STf2a16AwmjKWpJ3YFLNHMK1dQufd6e798dPG7pjXJmN5VFU6+wNmfk\nUlSAsgfBFjy5rugvh9KgztCSxwRJQOR0Mt95lGQGR0eZCnmOqolwc2nyniPw\nzxis5Nn63k2lrx89Bmp1/PYtNOEqgHdBuGTKpYVn7hj9Jw0SBaTwG1fG+fDp\noI2CSzhXlm2BR25Z6evet/7elzgiarPc8M6pCMmJKKMaHNVTidIm6xFMo6if\n02ZO1S4X+SmL+bFdHfkApvdZmfRqPK/B37UCi0EDDmXKXxwmM0YSP0ZH5CMl\n/swnSW1Z1VylcZXC6uLrtIT+mB8dRyoV9etCBZoZ/FrEOjS7Guwyg+RTe8JF\njJ7CQW6TQ748dGEX6091hT+HBQc+eky6uEE8wVpp4BXrgIASy2Td1Wj8EufF\nVO88\r\n=d/pt\r\n-----END PGP SIGNATURE-----\r\n","size":21534,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-5.0.0-next.6.tgz"},"main":"./lib/main.js","engines":{"node":">=8.0.0 || >=10.0.0"},"scripts":{"test":"node ../node_modules/mocha/bin/_mocha","clean":"node ../node_modules/rimraf/bin.js lib","watch":"node ../build/bin/tsc -b ./tsconfig.json -w","compile":"node ../build/bin/tsc -b ./tsconfig.json","preversion":"npm test","postpublish":"node ../build/npm/post-publish.js","prepublishOnly":"npm run clean && npm run compile && npm test"},"typings":"./lib/main.d.ts","_npmUser":{"name":"dbaeumer","email":"dirk.baeumer@gmail.com"},"repository":{"url":"git+https://github.com/Microsoft/vscode-languageserver-node.git","type":"git","directory":"jsonrpc"},"_npmVersion":"6.10.2","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"12.8.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_5.0.0-next.6_1578913478682_0.7454298718411001","host":"s3://npm-registry-packages"},"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":1578913478816,"_cnpm_publish_time":1578913478816,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}