read git packet lines (for smart protocol)
var recv = require'git-write-pkt-line'recvon'data'console.logdsendwrite'0032want 0000000000000000000000000000000000000000\n'
this module presents a
through stream; when written to it removes the
length header; but it leaves the newline ending. if an empty string or buffer is written, it will
emit a git "flush packet", which is just a size-0 packet.
after each line received, it checks to see if the next line starts with
PACK; and if so will enter recv-pack mode.
channel: Number0 // the sideband data the channel was sent ontype: 'packfile' | 'pkt-line' | 'pkt-flush'size: Numberdata: null | Buffercaps: 'list' 'of' 'capabilities'