{"name":"vscode-jsonrpc","version":"3.7.0-next.1","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@3.7.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":"e7521cd8135006ba8bf57ebcedbf5b03ce17b23e","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-3.7.0-next.1.tgz","fileCount":26,"integrity":"sha512-Xlex/7wGhPHqzEy2wPOybsCG6r55j3DPYLX5Ezu81OyNpt5Nm0d7n6rs27RtEqPYocufpYPn5n6XdePPCCW03g==","signatures":[{"sig":"MEUCIDFC4aIKrc1iGtP5fdzpNppHs1acEPcBlpwN8rOfwVdwAiEA9DOjBkRidzJvCOMug4AHyqERG/fnSvKsppsVApbOXVU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":132294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhPv9CRA9TVsSAnZWagAA1isP/3U7HodVzpt8TS+Rz+11\nL6wDT9sIZxUAILsvu3GARdO4XRa6Hz2M9v1aDSthJe7QBSijeXg2pmroiKGS\ne0jQeMdMlhDGxuDIaW9uDopq4B07OafY718oXm4j6AOBh0F0cuaV3e9FBOaP\nb+2yxYgpBSeEyai2KJbtSs7ZdjfTCxLY9zYHm/oB4pC4JX/BlzYezSJlAIGw\n06YzBSl0XvrG7n0T9IyEfS8sSZCyDF/vFZPGGYizmfzHML4qqaOcK9RlXFwG\nhBUU3wrvKgWx+cG6xkQpOKmRbGjwYXazMHdtbZvgNbaI1HYSnIg2DiB2GP9T\nI5stcsyWuikbpm1kC9tLWYPDlBfpzSmLs2uynRVEPUoVJll7Wg6o5ufPMF+5\nZ8lq43HQbZNxA/HFtY390p/Y7fhykt5Vf5v3FxQDE0idlYBKbWPgzg6NCT6p\ngcgcZz2ZLtXrq+xMIa3ejwGS7b7lkZnuKrpVjxAbjF2ZtQl1IqQL/UEuhGrH\nEGd99URfcFkeUP0ESEtDcXAd6+ER6qLd5lPRR0lME69CsUkWydmdf6amaFW5\nxtaC15Fm49DbwNMAnKwRLXEDebjOLDqV8mkji6fV1OoSjlWJ8qQuHCYnJ8AO\nfrmDmiaOsTyIppmY1Ly1uz9yWO+RJKpkxZs5hqnPf9KlI19EYH+Osj1ElMHX\nKY/+\r\n=83//\r\n-----END PGP SIGNATURE-----\r\n","size":22317,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-3.7.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 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 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### 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)","engines":{"node":">=4.0.0 || >=6.0.0"},"scripts":{"test":"node ../node_modules/mocha/bin/_mocha","clean":"node ../node_modules/rimraf/bin.js lib","watch":"node ../build/bin/tsc -w -p ./tsconfig.json","compile":"node ../build/bin/tsc -p ./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"},"_npmVersion":"5.6.0","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"8.9.4","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_3.7.0-next.1_1535441917125_0.9102407199752369","host":"s3://npm-registry-packages"},"publish_time":1535441917204,"_cnpm_publish_time":1535441917204,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}