{"name":"vscode-jsonrpc","version":"5.0.0-next.1","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@5.0.0-next.1","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":"5f24a61199ffa7faa77c99c62c9df2c284e73f07","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-5.0.0-next.1.tgz","fileCount":26,"integrity":"sha512-6+FNj6oHrFH4497bqw8wucQVONWYnv+KydJZzcvyJ57VRSQi6rCEX53/bGodlaEYs0Wv9XGahmJcQlc+89qH/A==","signatures":[{"sig":"MEQCIFbI0Na1Y94pprCWniHf0hQ67OlPSxuKNlDdKHv/70NQAiBC1AwotITXzY5dhhEsYNhamecCkAYqa0+H3oC0YtzhFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5682624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiKTGCRA9TVsSAnZWagAAPNMQAJ8Mi9b3i0fP3NR5fSat\nBue0pup8SwhgSzgSCYU5Yai+Zc+461tJIVKB/aFlpd2AIvjgOrpaskxGiWcq\nb1C9ahF+yhfmheHvIXqceV0n6DnqNraXCArWJe4AKOQjuh5X7xzuAgIoKmc+\n2yl0ELoF1sZkl7F/5lK8NYFWdxmEWvpniLXau6GLDYShPyON6aCT67J2/f0U\nQmJlpdx9lvpjgMYdTmXIUFVwkC+cL6M1FFNX9KL3JVqMVkx1qxZ3ezfwIQ3k\nW7Y5U7RMxsqePWroN1pxpUbP42vrGuC2JPxZOsNkXqLbDzGHfMXQzIA0ay2j\nI93o7OI2DClsfhsPlU5Qj0pfwDhLGc1fPwDkA+zdipxdodPFlu4FWCdnWJWy\njL/z0UhwvmwBNPAOd4+BwWzpBm8M1f7Jd8aZlfUB1RpAVrIiAGenTppxASNd\n1GujpG95G7DKqhDSJIBN+1yiJR06Zp55bPh8SLoxNHzRlwhuX4lM0K3rAolk\n91dzKYwvZCdwUDJ2CZmc93ZpY9d5vy5Kx8/kX03+xhJFxt0ospBKalnuMWdZ\neFekPJ+W+/b64w9jojqClTCdXk1DpA1pw/7Tdf+f8fHlHXxkLDVf+ZpXjYx5\nvAqf6eiReuJ1GR4ElsBEv+xYpOrF63Z5CjA/Aeh9HUZ5uOjT4o8bGeA0O3FX\n2h4z\r\n=oC9T\r\n-----END PGP SIGNATURE-----\r\n","size":719542,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-5.0.0-next.1.tgz"},"main":"./lib/main.js","readme":"# VSCode JSON RPC\r\n\r\n[![NPM Version](https://img.shields.io/npm/v/vscode-jsonrpc.svg)](https://npmjs.org/package/vscode-jsonrpc)\r\n[![NPM Downloads](https://img.shields.io/npm/dm/vscode-jsonrpc.svg)](https://npmjs.org/package/vscode-jsonrpc)\r\n[![Build Status](https://travis-ci.org/Microsoft/vscode-languageserver-node.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-languageserver-node)\r\n\r\nThis npm module implements the base messaging protocol spoken between a VSCode language server and a VSCode language client.\r\n\r\nThe npm module can also be used standalone to establish a [JSON-RPC](http://www.jsonrpc.org/) channel between\r\na client and a server. Below an example how to setup a JSON-RPC connection. First the client side.\r\n\r\n```ts\r\nimport * as cp from 'child_process';\r\nimport * as rpc from 'vscode-jsonrpc';\r\n\r\nlet childProcess = cp.spawn(...);\r\n\r\n// Use stdin and stdout for communication:\r\nlet connection = rpc.createMessageConnection(\r\n\tnew rpc.StreamMessageReader(childProcess.stdout),\r\n\tnew rpc.StreamMessageWriter(childProcess.stdin));\r\n\r\nlet notification = new rpc.NotificationType<string, void>('testNotification');\r\n\r\nconnection.listen();\r\n\r\nconnection.sendNotification(notification, 'Hello World');\r\n```\r\n\r\nThe server side looks very symmetrical:\r\n\r\n```ts\r\nimport * as rpc from 'vscode-jsonrpc';\r\n\r\n\r\nlet connection = rpc.createMessageConnection(\r\n\tnew rpc.StreamMessageReader(process.stdin),\r\n\tnew rpc.StreamMessageWriter(process.stdout));\r\n\r\nlet notification = new rpc.NotificationType<string, void>('testNotification');\r\nconnection.onNotification(notification, (param: string) => {\r\n\tconsole.log(param); // This prints Hello World\r\n});\r\n\r\nconnection.listen();\r\n```\r\n\r\n# History\r\n\r\n### 5.0.0\r\n\r\n- add progress support\r\n- move JS target to ES2017\r\n\r\n### 4.0.0\r\n\r\n- move JS target to ES6.\r\n\r\n### 3.0.0:\r\n\r\n- converted the NPM module to use TypeScript 2.0.3.\r\n- added strict null support.\r\n- support for passing more than one parameter to a request or notification.\r\n- Breaking changes:\r\n  - due to the use of TypeScript 2.0.3 and differences in d.ts generation users of the new version need to move to\r\n    TypeScript 2.0.3 as well.\r\n\r\n## License\r\n[MIT](https://github.com/Microsoft/vscode-languageserver-node/blob/master/License.txt)\r\n","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.4.1","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"10.15.1","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_5.0.0-next.1_1569236166007_0.8461068850622668","host":"s3://npm-registry-packages"},"publish_time":1569236166201,"_cnpm_publish_time":1569236166201,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}