{"_id":"git-read-pkt-line","_rev":"373013","name":"git-read-pkt-line","description":"read git packet lines (for smart protocol)","dist-tags":{"latest":"0.0.8"},"maintainers":[{"name":"chrisdickinson","email":""}],"time":{"modified":"2021-07-27T06:08:22.000Z","created":"2013-03-21T05:19:59.576Z","0.0.8":"2013-05-22T07:25:04.398Z","0.0.7":"2013-05-06T00:07:05.257Z","0.0.6":"2013-05-04T23:30:20.959Z","0.0.5":"2013-04-05T19:38:12.045Z","0.0.4":"2013-04-02T07:33:30.169Z","0.0.3":"2013-03-21T07:14:16.194Z","0.0.2":"2013-03-21T05:22:17.881Z","0.0.1":"2013-03-21T05:19:59.576Z"},"users":{},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"versions":{"0.0.8":{"name":"git-read-pkt-line","version":"0.0.8","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~1.0.1"},"dependencies":{"through":"~2.2.7","bops":"0.0.3"},"_id":"git-read-pkt-line@0.0.8","dist":{"shasum":"494037854ed57bd90cd55676540d86ab0cb36caa","size":2612,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.8.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1369207504398,"_cnpm_publish_time":1369207504398,"_hasShrinkwrap":false},"0.0.7":{"name":"git-read-pkt-line","version":"0.0.7","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~1.0.1"},"dependencies":{"through":"~2.2.7","bops":"0.0.3"},"_id":"git-read-pkt-line@0.0.7","dist":{"shasum":"87d07efda328230a75d97d64d042e6db5cb1e085","size":2570,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.7.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1367798825257,"_cnpm_publish_time":1367798825257,"_hasShrinkwrap":false},"0.0.6":{"name":"git-read-pkt-line","version":"0.0.6","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~1.0.1"},"dependencies":{"through":"~2.2.7","bops":"0.0.2"},"_id":"git-read-pkt-line@0.0.6","dist":{"shasum":"f1bd694ce916e5a0e6e3a47408fe55021b5075f3","size":2570,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.6.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1367710220959,"_cnpm_publish_time":1367710220959,"_hasShrinkwrap":false},"0.0.5":{"name":"git-read-pkt-line","version":"0.0.5","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~0.3.0"},"dependencies":{"through":"~2.2.7"},"_id":"git-read-pkt-line@0.0.5","dist":{"shasum":"6c968d386bacb586ca29b2ada49dd08fafae63fe","size":2563,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.5.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1365190692045,"_cnpm_publish_time":1365190692045,"_hasShrinkwrap":false},"0.0.4":{"name":"git-read-pkt-line","version":"0.0.4","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~0.3.0"},"dependencies":{"through":"~2.2.7"},"_id":"git-read-pkt-line@0.0.4","dist":{"shasum":"6388883f264e1d726001fb2b9fcfd1be486eac2d","size":2474,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.4.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1364888010169,"_cnpm_publish_time":1364888010169,"_hasShrinkwrap":false},"0.0.3":{"name":"git-read-pkt-line","version":"0.0.3","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~0.3.0"},"dependencies":{"through":"~2.2.7"},"_id":"git-read-pkt-line@0.0.3","dist":{"shasum":"a99deb0eca4164fe8f57f3211f1b529e403b7a5b","size":2458,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1363850056194,"_cnpm_publish_time":1363850056194,"_hasShrinkwrap":false},"0.0.2":{"name":"git-read-pkt-line","version":"0.0.2","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~0.3.0"},"dependencies":{"through":"~2.2.7"},"_id":"git-read-pkt-line@0.0.2","dist":{"shasum":"efba48ff1a6edc1439bd0474e4d69fca5c973a67","size":2478,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1363843337881,"_cnpm_publish_time":1363843337881,"_hasShrinkwrap":false},"0.0.1":{"name":"git-read-pkt-line","version":"0.0.1","description":"read git packet lines (for smart protocol)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-read-pkt-line.git"},"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"]},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","readmeFilename":"README.md","gitHead":"f6deea6b66c300e764a8c9742508a182994530c5","devDependencies":{"tape":"~0.3.0"},"_id":"git-read-pkt-line@0.0.1","dist":{"shasum":"66bc510aa620febb4e8e7192cec69cc7016ee889","size":2460,"noattachment":false,"key":"/git-read-pkt-line/-/git-read-pkt-line-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-read-pkt-line/download/git-read-pkt-line-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":""}],"directories":{},"publish_time":1363843199576,"_cnpm_publish_time":1363843199576,"_hasShrinkwrap":false}},"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{ channel: Number(0) // the sideband data the channel was sent on\n, type: 'packfile' | 'pkt-line' | 'pkt-flush'\n, size: Number\n, data: null | Buffer()\n, caps: ['list', 'of', 'capabilities'] }\n```\n\n## License\n\nMIT\n","_attachments":{},"readmeFilename":"README.md","license":"MIT"}