{"name":"vscode-jsonrpc","version":"8.0.2-next.1","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@8.0.2-next.1","maintainers":[{"name":"jrieken","email":"jrieken@microsoft.com"},{"name":"egamma","email":"egamma@microsoft.com"},{"name":"chrisdias","email":"cdias@microsoft.com"},{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"aeschli","email":"martinae@microsoft.com"},{"name":"dbaeumer","email":"dirk.baeumer@gmail.com"},{"name":"bpasero","email":"benjpas@microsoft.com"},{"name":"isidor","email":"inikolic@microsoft.com"},{"name":"joaomoreno.ms","email":"joao.moreno@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":"6bdc39fd194782032e34047eeefce562941259c6","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-8.0.2-next.1.tgz","fileCount":46,"integrity":"sha512-sbbvGSWja7NVBLHPGawtgezc8DHYJaP4qfr/AaJiyDapWcSFtHyPtm18+LnYMLTmB7bhOUW/lf5PeeuLpP6bKA==","signatures":[{"sig":"MEQCIGv73ktlfEDCdp8TrDuzv1ykBNLsR7VoDiJ/Psz9lf4BAiB8cBh+wPdxE2cAbJkE9GeBG1+yu1J1nglPqu25neRMRg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":197370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijjM3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyFA//YTSumVl0Z/xMd/FDekV9YzMYTZ/p9nzJh9bulsKK+rIveQQD\r\n/0bvMHZUXZ1NUWe4UsWrrLV2tBR1ZFF91udiCljuoDq/mXvEQZ4m4PlvzgQE\r\nWrq/80uxCMxgUs3EUPLhABbj54A1nr3oytlT7HMNZAEQwCdliWE7wr2H3q0P\r\npxnPhuAkxJM0Q9fk1QSaF1TB6wfYx6bi7p68aTD8sGhfEtah1oDmnW314S3/\r\nYmsMImq7Kgl1Y9OeZf1jLLtj/1wlotkzluNv7HkWWs/OFbK/XQA/L4duTjuh\r\n6ANIty/7wFsX2OjYN+yOGbkMM2dlD+W6qg8Jmldnqov2iSEiL2o++4XF/wMI\r\n9y2g5LUJFOlK5TAC9D3wsqkX84fV1oD+RZK1wZNRZvWW9dU31snIr+lmoNrg\r\n2jPK0qJWCHVUUnJ9CNrlQPh7qKE8n0ojSl4gRDF8CTGbsrCgzkqsV0CAm2M7\r\nBpMooKV2hLkFDAN01JcTVGODBlaE8cRvNFXGLTx75hG/MYQnQ2xGyrCq9IGV\r\niYuZE316iVdSD1hW/BGUzwQrpsdc2y5Zdw6qVipzLBUY62NIUtgs5LLnPR/g\r\nH7fmvBUu/mTh0tVKtcytTgdgcx5y8ubvRx2paDoMlRGjZiyXmLRvcim7VbkH\r\nS75jgj0sCPOKsMA/P2OhdwLCUVNIgON9rQE=\r\n=8y6u\r\n-----END PGP SIGNATURE-----\r\n","size":33544,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-8.0.2-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/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\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":">=14.0.0"},"gitHead":"4ee380e66e9d4c0ac64bd84080f723e770c05b25","scripts":{"lint":"node ../node_modules/eslint/bin/eslint.js --ext ts src","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":"node ../build/bin/webpack  --mode none --config ./webpack.config.js","test:node":"node ../node_modules/mocha/bin/_mocha","preversion":"npm test","postpublish":"node ../build/npm/post-publish.js","test:browser":"npm run webpack:test:silent && node ../build/bin/runBrowserTests.js  http://127.0.0.1:8080/jsonrpc/src/browser/test/","webpack:test":"node ../build/bin/webpack --mode none --config ./src/browser/test/webpack.config.js","prepublishOnly":"git clean -xfd . && npm install && npm run clean && npm run compile && npm test","webpack:test:silent":"node ../build/bin/webpack --no-stats --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":"8.1.2","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"16.13.2","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"msgpack-lite":"^0.1.26","@types/msgpack-lite":"^0.1.7"},"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_8.0.2-next.1_1653486391248_0.48181059054758846","host":"s3://npm-registry-packages"},"publish_time":1653486391459,"_cnpm_publish_time":1653486391459,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}