{"name":"vscode-jsonrpc","version":"6.0.0-next.1","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@6.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":"2246b8fae6e57b0943c4234a1f53eb41d949da19","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-6.0.0-next.1.tgz","fileCount":92,"integrity":"sha512-0eTsb6/1OOy+bewucUm7Bvor/Zz5y+mroZr0tJXfyleDiCu/MmHc5GGgcNm24501WRmKrM08HJ0pdLtXPZBlmg==","signatures":[{"sig":"MEUCIQCCJhylgtcA2F5ZvXRlEcnsOPXVityMT9E8aCDu8PJtgQIgLu0qgNlYMQTduTFNBnH4QQS6Eci05NtqB6e/H2KciuQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1022222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJez8bhCRA9TVsSAnZWagAASeUP/28RqY5tsZwZ0dunCnIV\nYE/kUPObzR5xcoBRya63pwEtF3MlJQ3g0+45LK/nvNFGhYx9fZHfempXnYis\nHMGXoluNgCefRBF4bw/QDjAfsKu6vc83FKwwviCQpQtw7zP1wEoc0FS7Cmnp\n3V9Xmq/ywKvkwab1zeUubrlYJiJ9gUhWwtzFPlWjhIMbb0uY4UOAxLQruHkX\npzd/IAFHOBBW3WhVXax9Sr6LtI+YT1z9VYu2b6id0sJ/46dYZhN8BleEcNYx\nUebKKGmEEb1DjVOX2vZDY9QZv0rJ+xfpd1KevkXpXs8G0bPAoz+wGpHtZarK\n6cTSXk0h2OikdwVWxN6nvC+vXmrPMC1Cjoo7G9hAirA2gvRZ0qRyPDICGusU\nNVX40ilQJqqU6+s7wxmGFQvJToX9c/xueRWrPRIeeV2cHTEPhjpOZHaGiA8Z\nwSAcTAQ+u3nUwuKwCs4kYLdZS3J5dzZrmUqqw1qOLp2Fhc4pNAAKox6w0YeO\nT922YFzUx7NHruF2oPaZPWywO/fZzeBU/KDoS48FJLydm4Hh6+K5cKof03xO\n8CAXIq0EUdn+W5qPiI1nrS5wk9IPZW0g7SpHCD3gCQbOPT6q29q8Gptk+vr8\nx3TKptuFzww2ktVHfkKDWjhSSd7Qivf9D6TMfaC0eOhO/gfhppt++C80ymqD\nfBsX\r\n=TFjP\r\n-----END PGP SIGNATURE-----\r\n","size":163122,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0-next.1.tgz"},"main":"./lib/node/main.js","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://travis-ci.org/Microsoft/vscode-languageserver-node.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-languageserver-node)\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';\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';\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\n### 5.0.0\n\n- add progress support\n- move JS target to ES2017\n\n### 4.0.0\n\n- move JS target to ES6.\n\n### 3.0.0:\n\n- converted the NPM module to use TypeScript 2.0.3.\n- added strict null support.\n- support for passing more than one parameter to a request or notification.\n- Breaking changes:\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\n    TypeScript 2.0.3 as well.\n\n## License\n[MIT](https://github.com/Microsoft/vscode-languageserver-node/blob/master/License.txt)\n","browser":{"./lib/node/main.js":"./lib/browser/main.js"},"engines":{"node":">=8.0.0 || >=10.0.0"},"scripts":{"test":"npm run test:node && npm run test:browser","clean":"node ../node_modules/rimraf/bin.js lib && node ../node_modules/rimraf/bin.js dist","watch":"node ../build/bin/tsc -b ./tsconfig-watch.json -w","compile":"node ../build/bin/tsc -b ./tsconfig.json","webpack":"webpack --mode none --config ./webpack.config.js","test:node":"node ../node_modules/mocha/bin/_mocha","preversion":"npm test","postinstall":"cd src/node && npm install && cd ../browser && npm install && cd ../..","postpublish":"node ../build/npm/post-publish.js","test:browser":"npm run webpack:test:silent && node ./src/browser/test/index.js","webpack:test":"webpack --mode none --config ./src/browser/test/webpack.config.js","prepublishOnly":"npm run clean && npm run compile && npm test","webpack:test:silent":"webpack --silent --mode none --config ./src/browser/test/webpack.config.js"},"typings":"./lib/common/api.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,"readmeFilename":"README.md","devDependencies":{"mocha":"^7.1.2","webpack":"^4.43.0","http-server":"0.12.3","webpack-cli":"^3.3.11"},"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_6.0.0-next.1_1590675169022_0.9538926323344028","host":"s3://npm-registry-packages"},"publish_time":1590675169195,"_cnpm_publish_time":1590675169195,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}