{"name":"vscode-jsonrpc","version":"8.0.1","author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"vscode-jsonrpc@8.0.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":"f30b0625ebafa0fb3bc53e934ca47b706445e57e","tarball":"http://registry-npm.ywwl.com/vscode-jsonrpc/download/vscode-jsonrpc-8.0.1.tgz","fileCount":46,"integrity":"sha512-N/WKvghIajmEvXpatSzvTvOIz61ZSmOSa4BRA4pTLi+1+jozquQKP/MkaylP9iB68k73Oua1feLQvH3xQuigiQ==","signatures":[{"sig":"MEUCIQCoKO3ALk/DBclEchzmm/KDp9BnimdxTTKiEdkN2nYV8wIgDEUxwZ03jdDw/mgPxAB0dYkbrKC9n3zG8mRf+j3yTXw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":196424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifNyyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfWxAAoLGeDmXfy2AMhRo9glfZO+8P2X0mZqoyd7tI184p2XB9J5of\r\nEiC3YxTmIvFArdpBOPvIIX7KaMtRCxa1FcVubp+BiIpv0o9gJOPaIwDcyyOP\r\nSrTUb1BbpZKXAehaC1PsjzfR9eRAz4bdBOpawyrEA+ZFUvNzRB+0RphKKlM9\r\n6tlI773TwI+d3GsdmuQwEJL+nMtTa3d1FqGed3FIRQOlpdj8d/aQEAmuBC4i\r\nRmiFeAnIDFnlRVm246b08vgSUsdqVpYVc62Y71iO1ctc9kBxxncckd0b40Cf\r\n0VJSrJFVgCf49//qhevLu+iNMUnftlBPkbCMP9AbnfaCojT2KBCaHHrOfaqb\r\nXGdV3HFCsd6dbTsWJLlC1J7it8kgN5eSgfE2mova4Ob7hnnU8cexvQhwp17S\r\nJnLMKeNBdLl8SZqW0QOL/SjArh5PPfGONi+D5QNVhe+oI/+U+87q5G9l0Xc4\r\nYvKus5MjDyWHDdx9keNKNPEokyTajBWVAKgkMyd6z6y2rfh5FDu2chc7Cc0U\r\nSkDIZWQBZnpQ8T6pt3EznPcqocyTeh+58l5qa2pcKV5e1KneNdaQZUx6yYuQ\r\nHmA8pGrs2PoUz6Y99XZon7Zp3LiYfd0ktMlwxxXXvVDKlzhOtBSDqPTTav/V\r\nt9gNTQaxNWudukjGDOYkzD+MecXskevS+9U=\r\n=A2Un\r\n-----END PGP SIGNATURE-----\r\n","size":33372,"noattachment":false,"key":"/vscode-jsonrpc/-/vscode-jsonrpc-8.0.1.tgz"},"main":"./lib/node/main.js","browser":{"./lib/node/main.js":"./lib/browser/main.js"},"engines":{"node":">=14.0.0"},"gitHead":"4df4a0b2c430d6cc30ecde525b718a7584d829aa","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,"devDependencies":{"msgpack-lite":"^0.1.26","@types/msgpack-lite":"^0.1.7"},"_npmOperationalInternal":{"tmp":"tmp/vscode-jsonrpc_8.0.1_1652350130375_0.6903310738966397","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":1652350130576,"_cnpm_publish_time":1652350130576,"dist-tags":{"latest":"10.0.0","next":"9.0.0-next.12"}}