{"name":"vscode-jsonrpc","version":"8.1.0-next.5","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@8.1.0-next.5","maintainers":[{"name":"alexandrudima","email":"alexdima@microsoft.com"},{"name":"dbaeumer","email":"dirk.baeumer@gmail.com"},{"name":"joaomoreno.ms","email":"joao.moreno@microsoft.com"},{"name":"kaimaetzel","email":"kamaet@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"lszomoru","email":"lszomoru@microsoft.com"},{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"}],"homepage":"https://github.com/Microsoft/vscode-languageserver-node#readme","bugs":{"url":"https://github.com/Microsoft/vscode-languageserver-node/issues"},"dist":{"shasum":"93fede04082a05268c735b77dae1edbb31708f33","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-8.1.0-next.5.tgz","fileCount":48,"integrity":"sha512-9l9lB8gXW1kPECKLC5Goc41pFztSCfODY3dvGaNTJ0KfRgwKIUyIhEBSdlWT2IU4uL4Tcl/zcitpb+Lj6QP7aQ==","signatures":[{"sig":"MEUCIQCB9M/8DCvX63ujq5ojorMAaREfTF5s1KrGgi71hphJ9gIgfTNNMlwGwGzSUnrtsLUUWtO/RtuUt9V19V3ld0px/9k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":207562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmul2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLbBAAgIfPuPWtw3VFlsNFqa7HImWY9U3r21N98XlhfOEBJCxTh22L\r\nEm6MROhkQb1SUI34zM+V4+xnqcDV7a167U5uxD54JJzfL/3uQ+mP9pRcFi2u\r\n8vUK805VV9TKP8s9ovpOEA6eQXS9aBUN/z16B+nlYpxHtoYBl7dl0aiO9lmd\r\n4bPsToWd5AjT9H6x0FIXKQKsJ3kcmiS+ADjf8OSAJ8Scj5qE5MPwQNUQ2TXm\r\n9aBgonWE7i0N6HpAfENZhcniDhTBxq0btTc6cbaYO2ZQp1WuQ77xI5rxDiie\r\nFlYvVin85WZn6mUV36wyrIpXVdCVFMHNiR0U0xfM9LrkbPvgv8ZQ2S93/zmy\r\nNy0JZrWTzOMnMnh2udC2X1T0ImOifHw8ibmE4av/EHiU5lAMeXnI3JzsVfS8\r\nRARoAl1fSHmdwn3J3GZyyXoV2NJSozENkkqqUfZdsj8oIKrljHmUd42pOkzd\r\nEREfJdcYDtGMf/BAiWwz3xU6SilkTBgxbb0m/T7dX+BUKIOyuKN6qIPxpxUo\r\n4N+7NZ3/2A4PMmHl1I5M6N1DtKyAA09fw7IqZlyQNt5HyphgtLi1cN0x5cB2\r\ngU3Qb4mB2eDfwppwC0n2j96OmnuvNGMV3nSuR3xUHG0pNiEJcQ3ZHeenpXt6\r\nV/mogCPgGSlmR6L0lhq0cRkdkpT8vetIdwo=\r\n=CW69\r\n-----END PGP SIGNATURE-----\r\n","size":35312,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-8.1.0-next.5.tgz"},"main":"./lib/node/main.js","_from":"file:vscode-jsonrpc-8.1.0-next.5.tgz","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"},"scripts":{"all":"npm run clean && npm run compile && npm run lint && npm run test","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","prepack":"npm run all:publish","webpack":"node ../build/bin/webpack  --mode none --config ./webpack.config.js","test:node":"node ../node_modules/mocha/bin/_mocha","preversion":"npm test","all:publish":"git clean -xfd . && npm install && npm run compile:publish && npm run lint && npm run test","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":"echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail","compile:publish":"node ../build/bin/tsc -b ./tsconfig.publish.json","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":"vscode-bot","email":"vscode-bot-npm@microsoft.com"},"_resolved":"/mnt/vss/_work/1/jsonrpc/vscode-jsonrpc-8.1.0-next.5.tgz","_integrity":"sha512-9l9lB8gXW1kPECKLC5Goc41pFztSCfODY3dvGaNTJ0KfRgwKIUyIhEBSdlWT2IU4uL4Tcl/zcitpb+Lj6QP7aQ==","repository":{"url":"git+https://github.com/Microsoft/vscode-languageserver-node.git","type":"git","directory":"jsonrpc"},"_npmVersion":"8.19.2","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"16.18.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"msgpack-lite":"^0.1.26","@types/msgpack-lite":"^0.1.7"},"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_8.1.0-next.5_1671096693739_0.5355508146337677","host":"s3://npm-registry-packages"},"publish_time":1671096693985,"_cnpm_publish_time":1671096693985,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}