{"name":"vscode-jsonrpc","version":"3.6.2","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@3.6.2","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":"3b5eef691159a15556ecc500e9a8a0dd143470c8","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-3.6.2.tgz","fileCount":26,"integrity":"sha512-T24Jb5V48e4VgYliUXMnZ379ItbrXgOimweKaJshD84z+8q7ZOZjJan0MeDe+Ugb+uqERDVV8SBmemaGMSMugA==","signatures":[{"sig":"MEQCIGm6DZGIk/WN/pxle16y+zg9LKpOdD5wNcZoQF3046khAiAsHpJxR0r5R6w/Ftek0lHmOX7byOvce4vN16fPb+wvdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/DEYCRA9TVsSAnZWagAAnUoP/3Um7gMnXmiMcw/BW9KC\ndaNI3hiBDbGwXUd07AVPq2LP+cIqhfN4DRSa2y2E8TEjeTB3O7rRl8iLXCJb\nLCqkQNjNy/V/LFSR1dXOxqkUyeqCJWxKPt68u9byiq20WCNsuXy+y3LIodco\n5E4GMZ+mMkKQqMk0hUImLGaT8Kp789a9O0/itbk3RLLBSb+28UXEKCgWkCEi\nAd2+hHfCy+typw+MDpXyhkLf8rZYcaRmv0GPvbFwIgGUso/ezZqaO6MUJzgo\nKyRutJxk3Yg+fadYjw2UcJXG+vX4e/MjREkFl90RECA+WUPfn+H60UtnxNYJ\nol29r76Wfw+j/Lv+zEIKSq1U/+WAjqz64lIPMNpkMAMgqCkNEh3QIVFc4vrl\nDbPRXop0oWVNz2T1dnUnt962Fugc2gOb4pgSAAlclNxRrPcOD03/wmF65lgX\n1JqJgbeB1G28UsaC4jvR0uo5gPMRWnTx7PBGaNDYYe9oTH2L/YOrWYMc8l4J\nSm/t7aiRjMG+ZWUhtgnKBtkYjzFN4bwWk+wgZqxnSYqCBaSeR38DTWx/0n3x\nQvbpK92+8NdndGL/nWOIbvDqnTKs/NFtaHHA9EVBmhShj6UrY5C7WLwjk3q8\nLp651ewFUP++T0gQYw6GE6cdy6KheiLzUNSZj3eRSE+oL/GkMViU+dIRO06v\nFBL7\r\n=FUcf\r\n-----END PGP SIGNATURE-----\r\n","size":21803,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-3.6.2.tgz"},"main":"./lib/main.js","engines":{"node":">=4.0.0 || >=6.0.0"},"scripts":{"test":"node ../node_modules/mocha/bin/_mocha","watch":"node ../build/bin/tsc -w -p ./tsconfig.json","compile":"node ../build/bin/tsc -p ./tsconfig.json","postpublish":"node ../build/npm/post-publish.js","prepublishOnly":"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,"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_3.6.2_1526477079055_0.7028960105007647","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":1526477079968,"_cnpm_publish_time":1526477079968,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}