{"name":"vscode-jsonrpc","version":"3.4.0","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@3.4.0","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"}],"homepage":"https://github.com/Microsoft/vscode-languageserver-node#readme","bugs":{"url":"https://github.com/Microsoft/vscode-languageserver-node/issues"},"dist":{"shasum":"aa95ac583bf31d80f725d57c27c09f4c2cfe9fa9","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-3.4.0.tgz","integrity":"sha512-BwgPCx/U7gAwdONkxXFwSqXwHokpnEI0eQYspDDdy/fIZ0SnUN9AM+FAxtg6bZnSH62Dgf2cZMy9X1t1mvJjPA==","signatures":[{"sig":"MEYCIQC3fSJGeCs0oPVaZphql7PLMZPPcZgruUS6Wn4AKvt4rQIhAIF5WYAkaR3M2ioT/NOjTkEnKuN0zZ7DW6qH2yHm98bh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":21757,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-3.4.0.tgz"},"main":"./lib/main.js","_from":".","_shasum":"aa95ac583bf31d80f725d57c27c09f4c2cfe9fa9","engines":{"node":">=4.0.0 || >=6.0.0"},"scripts":{"test":"node ../node_modules/mocha/bin/_mocha","watch":"tsc -w -p ./tsconfig.json","compile":"tsc -p ./tsconfig.json","prepublish":"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":"4.0.5","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"7.4.0","_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc-3.4.0.tgz_1504855973345_0.036749298917129636","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":1504855974472,"_cnpm_publish_time":1504855974472,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}