{"name":"vscode-jsonrpc","version":"5.0.1","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@5.0.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":"9bab9c330d89f43fc8c1e8702b5c36e058a01794","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-5.0.1.tgz","fileCount":26,"integrity":"sha512-JvONPptw3GAQGXlVV2utDcHx0BiY34FupW/kI6mZ5x06ER5DdPG/tXWMVHjTNULF5uKPOUUD0SaXg5QaubJL0A==","signatures":[{"sig":"MEQCIA5IMGUMP1yJuKa7/eBgpkWK0Wyw2dQFbtJDkKpcXY2vAiBIApVgGi7cdWMMAgK9K/ijM6Hr59vsOCLadonm32oecg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJgHDCRA9TVsSAnZWagAA8qIQAJ0PRjY4ns1eB6L1Y8cA\nXvartF+2fyWGTtNUAeVOxsZMuGTc87WEL+z5I8kyalsnHMyUkFqIDglT2XcS\n3D6ELcu4/KeDqRHk+AnBUXq5fSDzj+7oBc7x/2FbAg6ZYlwW9xc64SHqp+ui\n7XH5YCz14XYt8Mg4puIx2V0PH70k/2ypDo5piUk78TQU8Veq8VjpFjr8f99i\nqU/sSmXiIZWWfNCa+839fQ7S/m1mRM6xy9vpy6A3snm3V+hvxyugAPrtiUFt\nlqucd7BaamMVdEu4WFUK/qtZ163k5JkHrv21rUQqe6p8K4stB23x27OqvCZt\n401kV9hnlCs3O3ID29dHMDf5+R1y9WinyUaCSbLU4ZIB1UKgt1uxFsC+iiF/\nf6pUXXUV0chMjIvnfiEbPmNoLxCGvWZkHsEBnzxx/B7QS6Eth8UKHhNwT5qY\nunzQ/o51vNSnNUvl+cajHWieExLrjj/fU6eY9Ws7nYaOdWOzOSmbT1OzUl7Z\nfUxnhfYTKPvPb6yWyohBbjC0G7Nl9D1ufYtCzrtYkofFExL9xuWAIkQnu/Lm\n5RxUu4HNjVGz2WcbRsi7/2jnc2kyW2htEAibgZHbLTLmU2Quh58DMoIkO6zR\nwdEBmEx4jFOXy3YFHEWb0o4FIQbYeM4BCtoMs/C+rLz3M349vpM36e/g28c+\nuft0\r\n=oS1r\r\n-----END PGP SIGNATURE-----\r\n","size":21814,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-5.0.1.tgz"},"main":"./lib/main.js","engines":{"node":">=8.0.0 || >=10.0.0"},"scripts":{"test":"node ../node_modules/mocha/bin/_mocha","clean":"node ../node_modules/rimraf/bin.js lib","watch":"node ../build/bin/tsc -b ./tsconfig.json -w","compile":"node ../build/bin/tsc -b ./tsconfig.json","preversion":"npm test","postpublish":"node ../build/npm/post-publish.js","prepublishOnly":"npm run clean && 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","directory":"jsonrpc"},"_npmVersion":"6.10.2","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"12.8.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_5.0.1_1579549122563_0.3660774131128077","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":1579549122718,"_cnpm_publish_time":1579549122718,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}