{"name":"vscode-jsonrpc","description":"A json rpc implementation over streams","version":"9.0.0-next.4","author":{"name":"Microsoft Corporation"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Microsoft/vscode-languageserver-node.git","directory":"jsonrpc"},"bugs":{"url":"https://github.com/Microsoft/vscode-languageserver-node/issues"},"engines":{"node":">=14.0.0"},"main":"./lib/node/main.js","browser":{"./lib/node/main.js":"./lib/browser/main.js"},"typings":"./lib/common/api.d.ts","devDependencies":{"@types/msgpack-lite":"^0.1.10","msgpack-lite":"^0.1.26"},"scripts":{"prepublishOnly":"echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail","prepack":"npm run all:publish","preversion":"npm test","compile":"node ../build/bin/tsc -b ./tsconfig.json","watch":"node ../build/bin/tsc -b ./tsconfig.watch.json -w","clean":"node ../node_modules/rimraf/dist/esm/bin.mjs lib && node ../node_modules/rimraf/dist/esm/bin.mjs dist","lint":"node ../node_modules/eslint/bin/eslint.js --ext ts src","test":"npm run test:node && npm run test:browser","test:node":"node ../node_modules/mocha/bin/_mocha","test:browser":"npm run webpack:test:silent && node ../build/bin/runBrowserTests.js  http://127.0.0.1:8080/jsonrpc/src/browser/test/","webpack":"node ../build/bin/webpack  --mode none --config ./webpack.config.js","webpack:test":"node ../build/bin/webpack --mode none --config ./src/browser/test/webpack.config.js","webpack:test:silent":"node ../build/bin/webpack --no-stats --mode none --config ./src/browser/test/webpack.config.js","all":"npm run clean && npm run compile && npm run lint && npm run test","compile:publish":"node ../build/bin/tsc -b ./tsconfig.publish.json","all:publish":"git clean -xfd . && npm install && npm run compile:publish && npm run lint && npm run test"},"_id":"vscode-jsonrpc@9.0.0-next.4","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/ms/vscode-languageserver-node/_apis/build/status/microsoft.vscode-languageserver-node?branchName=main)](https://dev.azure.com/ms/vscode-languageserver-node/_build/latest?definitionId=439&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\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","readmeFilename":"README.md","homepage":"https://github.com/Microsoft/vscode-languageserver-node#readme","_integrity":"sha512-zSVIr58lJSMYKIsZ5P7GtBbv1eEx25eNyOf0NmEzxmn1GhUNJAVAb5hkA1poKUwj1FRMwN6CeyWxZypmr8SsQQ==","_resolved":"/mnt/vss/_work/1/jsonrpc/vscode-jsonrpc-9.0.0-next.4.tgz","_from":"file:vscode-jsonrpc-9.0.0-next.4.tgz","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-zSVIr58lJSMYKIsZ5P7GtBbv1eEx25eNyOf0NmEzxmn1GhUNJAVAb5hkA1poKUwj1FRMwN6CeyWxZypmr8SsQQ==","shasum":"ba403ddb3b82ca578179963dbe08e120a935f50d","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-9.0.0-next.4.tgz","fileCount":48,"unpackedSize":209423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIENLojkD4iPk+hoKLufQVJivnL8IzKWWMWfF2AbJ9Dh6AiEA/KQlne4WVschvRpw37bBc5eh7wM2ugsoIISDGeuKJb8="}],"size":35921,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-9.0.0-next.4.tgz"},"_npmUser":{"name":"vscode-bot","email":"vscode-bot-npm@microsoft.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-jsonrpc_9.0.0-next.4_1718102851444_0.36126545516811626"},"_hasShrinkwrap":false,"publish_time":1718102851620,"_cnpm_publish_time":1718102851620,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}