{"name":"vscode-jsonrpc","version":"4.0.0","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@4.0.0","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":"a7bf74ef3254d0a0c272fab15c82128e378b3be9","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-4.0.0.tgz","fileCount":26,"integrity":"sha512-perEnXQdQOJMTDFNv+UF3h1Y0z4iSiaN9jIlb0OqIYgosPCZGYh/MCUlkFtV2668PL69lRDO32hmvL2yiidUYg==","signatures":[{"sig":"MEYCIQDQTudwvn3kYyiyL7w/BmVkMZ/ezIxzyfEwpyo8weGdTwIhAPDwnE35LG4BDLdx2MNtWj1+cGkljDoabpsC7fCe/pla","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":118507,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbl4gCCRA9TVsSAnZWagAAlZcP/R0A1NqYUhd9yHn8lWtR\nF9WOstwMsdw8z4HtSVhWyeodnwDTVKL2bEpPn+SB+JYzTMswVeksAecpbcFu\nj1mEZYsSaygGOuB8DliBwC9Tly3v2Vvqvy/U9nLlFe7DCOCe4xyd1eZplMGx\nDrZ1HMW46rxf2JtmI8q4L68aUBq829l2uJUc1sFO+COACPZwmCkJoy8pSS91\ntgffZ4PVaC95rrHJ5tzhb2g0TW/m7X9yGmaYzkBoNGIlaEslVIZkqV8KmDTy\nwQS7sKGzwSVk6i6k0QB4S14SZskE6wIAS/MgV2tRTJTV1SJlA0XToVmaZjaU\nHXeTPwN8DyfXbYdehHlPTty0pfDs63QO6cfwqqSwRtWchqBvSJnE8wik8OB1\n9uBmfpVQ7/uQTnEjrUK5mTlqkkjqn7Jx3PrwQkcF5AoK8b7P2LqJZEkrJsh6\nmMG79vIV9rI5UQ1/FVxcgp7q3hye/7/8v0aOZOmieBg12dqV6DxMKZkcXEwu\nHVfcs7KTRIbsETZzyBWAKIH3lgJQQWkPWs8vl8Z14ispbgsF1C58B5XTQ4UR\nGUhgI5gVRDgUeAhRq9OmDw/d5QGtmqq0QVDel4VhHxXb31IJwSo2FydIHR1z\nHAv+Hx84J2SinAPycX4ldfV9x10szOlFe/rjpBNWPjP528KUcZB7unLQoStf\n9TPU\r\n=bisl\r\n-----END PGP SIGNATURE-----\r\n","size":20570,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-4.0.0.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 -w -p ./tsconfig.json","compile":"node ../build/bin/tsc -p ./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"},"_npmVersion":"5.6.0","description":"A json rpc implementation over streams","directories":{},"_nodeVersion":"8.9.4","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_4.0.0_1536657409771_0.36357446758493506","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":1536657409889,"_cnpm_publish_time":1536657409889,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}