{"dist":{"shasum":"494037854ed57bd90cd55676540d86ab0cb36caa","tarball":"https://registry.npmjs.org/git-read-pkt-line/-/git-read-pkt-line-0.0.8.tgz","integrity":"sha512-z4yqjcBcuTHqybHXq2VGOexlLKhqCrDMqgAGeHr84PmFym5OJnAFwmxShCu9yI4EsdeYkk+e9qKmRNLE41CiHw==","signatures":[{"sig":"MEQCIEonF+oFTGsJdirWzz4CTj30iGF0xAs5RPdR8qMcO2beAiAGu7SXyyB9mJbElUDrcsT89c89mvB45Z509/Tdhq3w4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","name":"git-read-pkt-line","_from":".","author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"readme":"# git-read-pkt-line\n\nRead [git smart protocol packet lines](https://www.kernel.org/pub/software/scm/git/docs/v1.7.0.5/technical/pack-protocol.txt).\n\n```javascript\nvar recv = require('git-write-pkt-line')()\n\nrecv.on('data', function(d) {\n  console.log(d)\n})\n\nsend.write('0032want 0000000000000000000000000000000000000000\\n')\n\n```\n\n## API\n\nthis module presents a `through` stream; when written to it removes the\nlength header; but it leaves the newline ending. if an empty string or buffer is written, it will\nemit a git \"flush packet\", which is just a size-0 packet. \n\nafter each line received, it checks to see if the next line starts with `PACK`; and if so will enter recv-pack mode. \n\n## data event\n\n```javascript\n{ type: 'packfile' | 'pkt-line' | 'pkt-flush' | 'progress' | 'error'\n, data: null | Buffer()\n, caps: ['list', 'of', 'capabilities'] }\n```\n\n> ## Warning\n>\n> This module simply passes pack data through.\n> If the source is set to emit `side-band` or `side-band-64k`\n> type data, you'll have to use another module to separate\n> that multiplexed data out.\n\n## License\n\nMIT\n","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","license":"MIT","scripts":{"test":"node test.js"},"_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"keywords":["git","read","packet","pkt","line"],"testling":{"files":"test.js","browsers":["ie/9..latest","firefox/10..latest","chrome/20..latest","safari/latest","iphone/6","ipad/6"]},"repository":{"url":"git://github.com/chrisdickinson/git-read-pkt-line.git","type":"git"},"_npmVersion":"1.2.14","description":"read git packet lines (for smart protocol)","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"dependencies":{"bops":"0.0.3","through":"~2.2.7"},"readmeFilename":"README.md","devDependencies":{"tape":"~1.0.1"},"_id":"git-read-pkt-line@0.0.8","version":"0.0.8"}