{"_id":"tcp-log-client","_rev":"10-166512784ea19f9d6800428b5563f0b2","name":"tcp-log-client","description":"stream and write tcp-log-server entries","dist-tags":{"latest":"6.0.0"},"versions":{"1.0.0":{"name":"tcp-log-client","description":"sync with tcp-log-servers","version":"1.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"dependencies":{"reconnect-core":"^1.3.0","uuid":"^2.0.2"},"devDependencies":{"abstract-blob-store":"^3.2.0","dev-null":"^0.1.1","duplex-json-stream":"^1.0.1","level-logs":"^1.1.0","levelup":"^1.3.2","memdown":"^1.2.0","pino":"^2.7.2","run-parallel":"^1.1.6","standard":"^7.1.2","stream-set":"^1.1.0","tape":"^4.6.0","tcp-log-server":"^2.0.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"scripts":{"lint":"standard","test":"node test.js"},"gitHead":"3d4669c976901bb8a44e588d70ea8352187de7a2","bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","_id":"tcp-log-client@1.0.0","_shasum":"a39d289026feddd0759f144215a8000da9cf78a1","_from":".","_npmVersion":"3.9.6","_nodeVersion":"4.4.5","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"a39d289026feddd0759f144215a8000da9cf78a1","tarball":"https://registry.npmjs.org/tcp-log-client/-/tcp-log-client-1.0.0.tgz","integrity":"sha512-exLlryDunuhcD2mowu6SmaKDHN1SqXkWJDh5E7eRabRI0qpT+XWXo3Zkj6Ko6eZWDKaLbgIaAsim/IZLP1Wx5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEP3l6J/iWCR1QzN0CT1k1Vx+EXbWgKXx6l+wISaRx9xAiBYgGPePfZhrY1bhdnUqdOw1wYjANNFXKuMwnu8D2gMxA=="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tcp-log-client-1.0.0.tgz_1467616098860_0.4317370466887951"},"directories":{}},"2.0.0":{"name":"tcp-log-client","description":"sync with tcp-log-servers","version":"2.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"dependencies":{"reconnect-core":"^1.3.0","uuid":"^2.0.2"},"devDependencies":{"abstract-blob-store":"^3.2.0","dev-null":"^0.1.1","duplex-json-stream":"^1.0.1","level-logs":"^1.1.0","levelup":"^1.3.2","memdown":"^1.2.0","pino":"^2.7.2","run-parallel":"^1.1.6","standard":"^7.1.2","stream-set":"^1.1.0","tape":"^4.6.0","tcp-log-server":"^4.1.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"scripts":{"lint":"standard","test":"node test.js"},"gitHead":"b5378bee1036cd00bacee146621a1c61ec3f0737","bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","_id":"tcp-log-client@2.0.0","_shasum":"b41171df5e77bb990d79a3f3212775b8e383cfa4","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"b41171df5e77bb990d79a3f3212775b8e383cfa4","tarball":"https://registry.npmjs.org/tcp-log-client/-/tcp-log-client-2.0.0.tgz","integrity":"sha512-E4u2s3sHhXbrBJUPOXzo9057lgwo49LKa28avmlZedmsWb7SzwZfaOVLjO4g0UuF6/W+sR+gw1/QlkAsh9ruVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEPGx6EZDj9OgdML1XJdCsxENLwC1ycnHJ39I0z4FediAiEA/RoE+hSIUoB35FTh+B8T0BUO49RexeTca6Ya6oQWNzE="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tcp-log-client-2.0.0.tgz_1467706474394_0.4413372799754143"},"directories":{}},"3.0.0":{"name":"tcp-log-client","description":"sync with a tcp-log-server","version":"3.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"dependencies":{"ndjson":"^1.4.3","pump":"^1.0.1","through2":"^2.0.1","uuid":"^2.0.2"},"devDependencies":{"abstract-blob-store":"^3.2.0","dev-null":"^0.1.1","level-logs":"^1.1.0","levelup":"^1.3.2","memdown":"^1.2.0","pino":"^2.7.2","sha256":"^0.2.0","standard":"^7.1.2","tape":"^4.6.0","tcp-log-server":"^6.0.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"scripts":{"lint":"standard","test":"node test.js"},"gitHead":"2a033c1e9eebc623e47a0fee91376097cceed677","bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","_id":"tcp-log-client@3.0.0","_shasum":"773353ddf81c5271131d7d9a7d3bf0f34f592964","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"773353ddf81c5271131d7d9a7d3bf0f34f592964","tarball":"https://registry.npmjs.org/tcp-log-client/-/tcp-log-client-3.0.0.tgz","integrity":"sha512-BP++11j/lUMXNkv+mX34ryHv/mTm+7V7hw0eKFjRQE0ievW8Th8TMoSAV/p+9Rs+nEikKYm1oe66WQM4RGlnOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhbb+ohrtt9CXdhoEopEPQduVTnnYxu0FhUHEiFfA5BAiAnt9Q2nllJ/WaEehTQji8ESWcI9kD/MuWK2ZD3L4FTzA=="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tcp-log-client-3.0.0.tgz_1468127412198_0.46414314000867307"},"directories":{}},"3.1.0":{"name":"tcp-log-client","description":"sync with a tcp-log-server","version":"3.1.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"dependencies":{"ndjson":"^1.4.3","pump":"^1.0.1","through2":"^2.0.1","uuid":"^2.0.2"},"devDependencies":{"abstract-blob-store":"^3.2.0","dev-null":"^0.1.1","level-logs":"^1.1.0","levelup":"^1.3.2","memdown":"^1.2.0","pino":"^2.7.2","sha256":"^0.2.0","standard":"^7.1.2","tape":"^4.6.0","tcp-log-server":"^6.0.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"scripts":{"lint":"standard","test":"node test.js"},"gitHead":"1ec1d8a1086319e433ca2c8858b56a4a94e84bb3","bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","_id":"tcp-log-client@3.1.0","_shasum":"c8f87df96014a986c6bd2408820ec5704f6c7b23","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"c8f87df96014a986c6bd2408820ec5704f6c7b23","tarball":"https://registry.npmjs.org/tcp-log-client/-/tcp-log-client-3.1.0.tgz","integrity":"sha512-VDrE4DGMN+ycjdJQLO68DFQTZGGp88YkgvNkCTnR3afOGhDzpc+OUa5zRVMfQZkoasBujuSociOQlkfN2yiXpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDfx8nudzX7JGI5UxcEcuApBbTXbOIxrt6Fe7j7MyeqrAiEA/j1Vu4RSNjuV/nMC1M5Ei/V0xbAF9p5JlJCFJ/M1zdw="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tcp-log-client-3.1.0.tgz_1468218035194_0.9510017167776823"},"directories":{}},"4.0.0":{"name":"tcp-log-client","description":"stream and write tcp-log-server entries","version":"4.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"dependencies":{"ndjson":"^1.4.3","pump":"^1.0.1","reconnect-core":"^1.3.0","through2":"^2.0.1","uuid":"^2.0.2"},"devDependencies":{"abstract-blob-store":"^3.2.0","async.mapseries":"^0.5.2","dev-null":"^0.1.1","level-logs":"^1.1.0","levelup":"^1.3.2","memdown":"^1.2.0","pino":"^2.7.2","sha256":"^0.2.0","standard":"^7.1.2","stream-set":"^1.1.0","tape":"^4.6.0","tcp-log-server":"^6.0.0"},"keywords":["TCP","client","database","kappa","log"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"scripts":{"lint":"standard","test":"node test.js"},"gitHead":"237c65e877c2965be393a90d1de350a0d5865b9c","bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","_id":"tcp-log-client@4.0.0","_shasum":"548a69fe6a6fe66daac8683855cf1ce0fb3d370b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"548a69fe6a6fe66daac8683855cf1ce0fb3d370b","tarball":"https://registry.npmjs.org/tcp-log-client/-/tcp-log-client-4.0.0.tgz","integrity":"sha512-GZg9mQlx8mrsqD3opJqlNjimWmbucezrz+643KEQ6XzPvPI9T+xXfgsi+whPfaT7hNgsNRfbw4caeN2YbZ0XwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfwVmDtOemEkeoSKqY16p2oUmqqHf+Q+SKCWLJmI3vYAIgQNZmNw0pbkeApUENiR2+VV/ASz0h3H75avASqCZwT+U="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tcp-log-client-4.0.0.tgz_1468269655541_0.7731898587662727"},"directories":{}},"5.0.0":{"name":"tcp-log-client","description":"stream and write tcp-log-server entries","version":"5.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"dependencies":{"ndjson":"^1.4.3","pump":"^1.0.1","reconnect-core":"^1.3.0","through2":"^2.0.1","uuid":"^2.0.2"},"devDependencies":{"abstract-blob-store":"^3.2.0","async.mapseries":"^0.5.2","dev-null":"^0.1.1","istanbul":"^0.4.4","level-logs":"^1.1.0","level-simple-log":"^2.0.0","levelup":"^1.3.2","memdown":"^1.2.0","pino":"^2.7.2","sha256":"^0.2.0","standard":"^7.1.2","stream-set":"^1.1.0","tape":"^4.6.0","tcp-log-server":"^9.0.0"},"files":["index.js"],"keywords":["TCP","client","database","kappa","log"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"scripts":{"coverage":"istanbul check-coverage --statements 100 --functions 100 --branches 100 --lines 100","lint":"standard","precoverage":"istanbul cover -- test.js","test":"node test.js"},"gitHead":"5d07b08eb236bef8f350e7fe3346c8a5f2b0313e","bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","_id":"tcp-log-client@5.0.0","_shasum":"1432ac6a6fb136feffc966f7a1b789f59bc4dafb","_from":".","_npmVersion":"3.10.5","_nodeVersion":"4.4.7","_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"dist":{"shasum":"1432ac6a6fb136feffc966f7a1b789f59bc4dafb","tarball":"https://registry.npmjs.org/tcp-log-client/-/tcp-log-client-5.0.0.tgz","integrity":"sha512-cgP6Oz86l1O00tMebm2vpK/knuKyU+zQm5Vt5waWDWw6JhIUcvFbiuErXi/NWg0leoHbj/v48z1As/01F51Uiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZYi2V+/2E2tWAJUZMJfXktLfIBZzk+3/7v0jrbK8EiAiEAs8PMFpXQMtFWjckJqhuapeOzrSrbNFhZUnr96RvwJ4k="}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/tcp-log-client-5.0.0.tgz_1469296765846_0.46894105640240014"},"directories":{}},"6.0.0":{"name":"tcp-log-client","description":"stream and write tcp-log-server entries","version":"6.0.0","author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"dependencies":{"ndjson":"^1.4.3","pump":"^3.0.0","reconnect-core":"^1.3.0","through2":"^3.0.1","uuid":"^3.3.2"},"devDependencies":{"abstract-blob-store":"^3.2.0","async.mapseries":"^0.5.2","dev-null":"^0.1.1","istanbul":"^0.4.4","level-logs":"^1.1.0","level-simple-log":"^3.0.0","levelup":"^4.1.0","memdown":"^4.1.0","pino":"^5.12.6","sha256":"^0.2.0","standard":"^12.0.1","stream-set":"^1.1.0","tape":"^4.6.0","tcp-log-server":"^10.0.0"},"keywords":["TCP","client","database","kappa","log"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"scripts":{"coverage":"istanbul check-coverage --statements 100 --functions 100 --branches 100 --lines 100","lint":"standard","precoverage":"istanbul cover -- test.js","test":"node test.js"},"gitHead":"5f98eb0144c889113200e29eb25972f560117e3b","bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","_id":"tcp-log-client@6.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.2","dist":{"integrity":"sha512-VNXjO6pJB0Rt7R+Ty/n2SjUawi9BnHWw4qBBGK+Hw1OMcFLlcTUzMsynSX/j6iGpRm9lUkyFEqgb2q9WyO3BTg==","shasum":"df8d091dacc6d9321408a03fba75ce37d90bd8bf","tarball":"https://registry.npmjs.org/tcp-log-client/-/tcp-log-client-6.0.0.tgz","fileCount":4,"unpackedSize":10435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGwLMCRA9TVsSAnZWagAAMaYP/jQueVyuICRiWx1jwqqq\nK9Bv7Va+9aCi9E33Bc+mxEbWWTKPvMWI0jFuNCGc3szK6tOSFMvb2AzpPYKN\n1ZKBttGr754Wkms4Yn9wGEBMonOKhF0gXrRaEedZI8kosyUfC3UP8cyB6BVh\nD09KpNyijBFMkSjgCuvjNrUSOGC/7nWOJzAZBgg0lIQSmj3ld9xlNWuwhG0Y\nDU1yk3X0vwCFK2z/ZNQ7Iq0MZHZWgtrxen9UKi1cTuvYcsZVgDvEu0RswpfL\ns29N9jKbG0vJu9NjZyeznEWUbWEG2VtKh5JII9Eq1q0GJLyxjMCtJpfwcNK8\nduaOoA7rj4m/x3wZZS0TIhrPHF+gfiYE+CSmzU/GuZtU2kLqiv62GbSTtB9u\nzupwCB8nSg3AtvuZC/eYw5gpDQUHDqIMYcTrmmxoG26Cia3yRI65glxzF79u\na3kOJUzS5yGB3G6x3UKCUy1rGtR5VmeDAJqRUbcQbUe2MA8V8Fny/Xh2ajcB\nHzwpgh7xeRbfI9SQ4tLYIUdEcg1Jno9b9UKBM2Sd5hdj9haVtFYWboWXERdh\nufqdFJd2Upir708GofPYkuwBbdFvSYtx+7tjauPTP6ZVPxJhBvx7FgxA3L9Z\nLIIbJRFt1mV0OKXzQea2wzmYT3K4n6WQ93ug3cdVC+yr/rdYQJe/aq922xKm\nN8Ty\r\n=A2nZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLbldCBrIVyxhy7Zc5RFviL4k5YnVG8sVSWJLlC0lp2wIhAKl6QSIlKB8guxe5vicAostPrchFXFa/PAVsLobPtO/V"}]},"maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"_npmUser":{"name":"kemitchell","email":"kyle@kemitchell.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tcp-log-client_6.0.0_1562051275619_0.5580551103578735"},"_hasShrinkwrap":false}},"readme":"Stream and write [tcp-log-server] entries.  Reconnect automatically.\n\n[tcp-log-server]: https://npmjs.com/packages/tcp-log-server\n\n```javascript\nvar TCPLogClient = require('tcp-log-client')\n\nvar client = new TCPLogClient({\n  // Use these options for `require('net').connect(options)`.\n  server: {port: port},\n  // Enable TCP keepalive. Enabled by default.\n  keepAlive: true,\n  // Disable the Nagle algorithm. Disabled by default.\n  noDelay: true,\n  // Start reading from entry index 1. 1 by default.\n  from: 1,\n  // Stop trying to reconnect and fail after 5 attempts.\n  reconnect: {failAfter: 5}\n})\n  .on('error', function (error) {\n    console.error(error)\n  })\n  .on('fail', function () {\n    console.error('Failed to reconnect.')\n  })\n  .once('ready', function () {\n    if (client.connected) {\n      client.write({example: 'entry'}, function (error, index) {\n        console.log('New entry index is %d', index)\n        // Permanently disconnect and end `client.readStream`.\n        client.destroy()\n      })\n    }\n  })\n\n// Readable stream of log entries.\n// Entries added with `client.write()` will be streamed, too.\nclient.readStream.on('data', function (chunk) {\n  console.log(chunk.index)\n  console.log(chunk.entry)\n})\n```\n\nSee also:\n\n- [net documentation](https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener) for `options.server`\n- [reconnect-core](https://www.npmjs.com/package/reconnect-core) for `options.reconnect`\n- [migrate-versioned-log](https://www.npmjs.com/package/migrate-versioned-log) for versioning log entries\n","maintainers":[{"name":"kemitchell","email":"kyle@kemitchell.com"}],"time":{"modified":"2022-06-27T04:15:44.935Z","created":"2016-07-04T07:08:19.421Z","1.0.0":"2016-07-04T07:08:19.421Z","2.0.0":"2016-07-05T08:14:37.894Z","3.0.0":"2016-07-10T05:10:14.890Z","3.1.0":"2016-07-11T06:20:38.039Z","4.0.0":"2016-07-11T20:40:58.603Z","5.0.0":"2016-07-23T17:59:28.686Z","6.0.0":"2019-07-02T07:07:55.795Z"},"homepage":"https://github.com/kemitchell/tcp-log-client.js#readme","repository":{"type":"git","url":"git+https://github.com/kemitchell/tcp-log-client.js.git"},"author":{"name":"Kyle E. Mitchell","email":"kyle@kemitchell.com","url":"https://kemitchell.com/"},"bugs":{"url":"https://github.com/kemitchell/tcp-log-client.js/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["TCP","client","database","kappa","log"]}